Add optional MD5 calculations on files to NSIS
Hi all,

I have submitted a patch to Add optional MD5 calculations on files to NSIS.

The patch can be found here:

http://sourceforge.net/tracker/index...49&atid=373087

I am also attaching it to here as well.

What it does:

Add optional MD5 calculations on files to NSIS

All this code is hidden behind a define of:
NSIS_CONFIG_MD5_SUPPORT

This patch adds 3 things:

2 Optional parameters to the "FILE" command:

/md5
If the /md5 switch is used, and NSIS_CONFIG_MD5_SUPPORT was set when
compiling NSIS, the md5sum of the file will be calculated and stored in the
Installer binary.

/md5verify
If the /md5verify switch is used, and NSIS_CONFIG_MD5_SUPPORT was set when
compiling NSIS, the md5sum of the installed file will be calculated and
verified against the stored md5sum value for the file.

1 New Command called "MD5Sum"
Usage:
MD5Sum "$(user_var: output) "filename"


Nearly all of the size of this patch/code is just bringing in the
md5.c/md5.h files that was already shipped in Contrib\VPatch\Source\Plugin

I am hoping this patch might make it into the NSIS sources, as all the code is hidden behind a define.

Thoughts? Comments?

Thanks!
Scott