Archive: Prevent all files being packaged


Prevent all files being packaged
I have two nsi scripts. They are very similar - one installs the full application and the other installs a smaller subset with fewer files. I have one .nsh header file which contains the full file list for both installers. The .nsh file looks a bit like this...


Function coreFiles
File A.dll
FunctionEnd

Function extraFiles
File X.dll
File Y.dll
File Z.dll
FunctionEnd


The installer for the small application only calls coreFiles but it also includes the XYZ.dlls in the package which makes it bigger for no reason. I can solve this problem by creating two different header file for my file lists but is there a more elegant solution? Thanks.

You should use a !macro instead of a Function.

Stu


Originally posted by Afrow UK
You should use a !macro instead of a Function.

Stu
Yep that did it thanks.