Skip to content
⌘ NSIS Forum Archive

Making NSIS even smaller...?

10 posts

eccles#

Making NSIS even smaller...?

I've just found/rediscovered this file while clearing out my downloads directory, explaining some compiler/linker options to make .exe's smaller 🙂

Just curious if the NSIS exehead could make use of any/all of these options, if it doesn't already...?

--
Dave.
rainwater#
That's the header file from http://www.nopcode.com/. A quick test showed the exehead went from 35.5k to 35k (difference of 0.5k). I'm not sure about the license though.
eccles#
Just confirmed the part of that file doing the business boils down to adding the following to the linker options in the project settings
/merge:.text=.data /merge:.reloc=.data /ignore:4078
How about setting these in the next version then? Or could they cause side-effects...?
eccles#
Originally posted by eccles
Just confirmed the part of that file doing the business boils down to adding the following to the linker options in the project settings
/merge:.text=.data /merge:.reloc=.data /ignore:4078
Anyone know of any problem these settings could cause? If not I'd like to add them to nsis2k...

Dave.
kichik#
If you add them the header file can not be compressed using UPX. I alredy removed it from NSIS 2.0a1.