Skip to content
⌘ NSIS Forum Archive

Can module order alter installer size?

7 posts

travsey#

Can module order alter installer size?

Just wondering, can the order that modules are added to an installer alter the installer size?

I have searched the Wiki, forums and Google... nothing useful yet.

Any tips greatly appreciated!
Afrow UK#
What do you mean by modules? If you mean plug-ins, then I doubt it.

You can try it though. Put a plug-in call in a section and see if it alters the size text on the directory page.

Stu
kichik#
The order in which data, be it files, strings or any other data; is compressed affects the compression. How it would change depends on a lot of things. It is usually wise to put similar files together to get better compression ratios.
travsey#
Thanks for the help!
I am making installers that use a combination of .exe .dll .hlp and .cnt files.

Looking at the code it appears that they are getting thrown in any time... time to tweak the code😁
kichik#
I forgot to mention "better" doesn't necessarily mean a two-digit number of percentage. So you shouldn't expect any radical results.
travsey#
I didn't think there would be a huge difference in size... but any reduction will be worth it.

Cheers!
travsey#
Thanks for the advice kichik!!!
Messing around with the order and grouping similar files together, cut down the size by around 0.5 MB. Nothing earth shattering, but worth it🙂