Inno Setup – The setup files are corrupted. Please obtain a new copy of the program.
During some recent work using Inno Setup to create a bootstrap application, several workstations were presented with the following error:
After hours upon hours of Googling, I still couldn’t find a fix that worked for me. Upon more carefully examining my script, I noticed I had left the following line in my ISS file:
UninstallDisplayIcon={app}\icon25x25.ico
The problem was due to the fact that I never included this file under the [Files] area as I simply had no intention of ever using the icon.
So for future reference (and in case someone stumbles upon this through Google), always ensure any file reference is valid. Your compiler and development machines may not throw an error, but if you plan to distribute this to several workstations this error may rear its ugly head.
UPDATE:
After fixing this file, I was still noticing an error on the hosting site (although any EXE file downloaded from my website worked flawlessly). It turns out Redhat and PHP often don’t play too well together in this regard and need a few settings tweaked in httpd.conf, you may need to disable the EnableMMAP and/or EnableSendfile options.