rcedit icon indicating copy to clipboard operation
rcedit copied to clipboard

Inno-setup generated installation file was broken after modify version string by rcedit

Open cuixiping opened this issue 8 years ago • 5 comments

I use inno-setup to generate installation file and then modify some information by rcedit. The file size will be reduced to about 100~200KB and cannot work correctly.

cuixiping avatar Aug 12 '17 02:08 cuixiping

Can you provide an example exe file so we can look into the problem? And can you check whether it is the same bug with the other issues?

zcbenz avatar Sep 13 '17 07:09 zcbenz

Hello, i have similiar problem.

  • I generate uninstaller.exe with NSIS with ExectuionLevel user (very simple installer from tutorial: http://nsis.sourceforge.net/Simple_tutorials)
  • and change execution level with rcedit: rcedit.exe uninstaller.exe --set-requested-execution-level requireAdministrator
  • after that uninstaller elevate (OK)
  • but file looks corruped (BAD)

Probably some NSIS's CRC? (I already tried remove CRCcheck with /NCRC or CheckCRC off options)

image

pack.zip

On my real installation uninstaller changed size from 188kB to 60kB after rcedit and removed all file version info.

sommcz avatar Jan 08 '18 19:01 sommcz

additional info: It looks like some installer data were being stripped out by the rcedit

image

If i do the same change manually with http://www.angusj.com/resourcehacker, it works OK.

If i use rcedit before adding end-of-file data, it works ok too (http://nsis.sourceforge.net/Using_!packhdr).

sommcz avatar Jan 08 '18 20:01 sommcz

I can confirm that I have the same issue.

vasanthaganeshk avatar Jul 07 '21 07:07 vasanthaganeshk

I am having the same issue with Inno Setup 5.x after changing ProductName and CompanyName

image

thomasrea0113 avatar Apr 19 '22 12:04 thomasrea0113