Archive: Problem packing EXE header with UPX


What must I put in nsiconf.nsi and in my NSI script to be able to compress the header with UPX 1.20 Win32 console version installed in "C:\Program Files\upx120w" ? I use NSIS 1.2g .


Try

!packhdr "temp.dat" "c:\progra~1\upx120w\upx.exe -best temp.dat"


Where ?
In command line, in my script or in nsisconf.nsi ?


In your script file. Put it as one of the first lines.


!packhdr does not exist in NSIS 1.2g
There is a command PackEXEHeader, though.


How can you possibly know about the PackExeHeader instruction and ignore the big notice saying that it will be replaced with "!PackHdr" !?!?

Please read the documentation carefully and thoroughly!



Repzilon's using v1.2g. !PackHdr doesn't exist yet.


Hrm, Justin still hasn't updated the Winamp developer download page? Argh.......

Please try NSIS 1.43: http://www.firehose.net/free/nsis/


I don't like functions
This is the reason why I stick to version 1.2g .


You aren't required to use functions. You really should upgrade. Chances are you won't have to change your script much at all.