Archive: CRCCheck Fails


CRCCheck Fails
When specifying "CRCCheck off" with an installation NSIS still performs the CRCCheck and reports "Installer integrity check has failed".

The situation is where I add extra bytes on the end of the installer EXE in order to customize the applications settings.

Shouldn't the CRCCheck be turned off when i tell it to be turned off within the script?


That message could still appear if the installer is so corrupted that it can't be read. Appending data to the installer can't cause this. Make sure you're not modifying anything else in the installer. Maybe your editor converts newlines (\n -> \r\n).


I don't know why it would still check, but I do know that if you append data to the end of the installer, it should still pass the CRC check so you are doing something wrong


My bad - it works perfectly
Looks like you guys are right. I viewed the "before" and "after" EXE files in a hex editor and i was off by one byte. A bug in my code not yours.

I was previously using Innosetup and it worked there and i shouldn't have assumed that my code would have worked with NSIS.

By the way NSIS is an awesome way to boot strap .NET apps and actually reduces the size of the resulting EXE.