Skip to content
⌘ NSIS Forum Archive

Checking the CRC value of a file

5 posts

cchian#

Checking the CRC value of a file

I would like to check if an installed file is exactly the same as another one by checking its CRC value, is this possible?

Thanks
kichik#
It is not possible with basic NSIS commands but you can always create an external DLL to do the job. Have a look at crc32.c, it contains the core of the NSIS CRC mechanism.
cchian#
Thanks Kichik, unfortunately I wouldn't know where to start. Maybe someone has already written one and can share it?
kichik#
Try searching for a command line md5sum for Windows. It does the same thing as CRC, so you won't have to write any program.