Archive: makensis.exe - Application Error


makensis.exe - Application Error
The instruction at 0x00410c10 referenced memory at 0x00ada000. The memory could not be "read".

Using the attached NSI script.

Occurs at this point:

                     Ultimate Packer for eXecutables
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

File size Ratio Format Name
-------------------- ------ ----------- -----------
40960 -> 23040 56.25% win32/pe tmp.dat

Packed 1 file.
Finding icons offsets for uninstaller... Done!
Source of the problem is --compress-icons=1. For quick reference, here's the line being used with UPX:

!packhdr tmp.dat "${HAVE_UPX}\upx -9 --compress-icons=1 tmp.dat"

If you compress the icons NSIS can't find them and can't generate offsets for their replacement. You should not compress the icons.

I'll add some checks that will give a nicer error.


Interesting since that is the line that NSIS uses to compile itself!


I can't find --compress-icons in any file in the NSIS directory. Where do you see that?


Sorry, it was in the old NSIS1.98 script.