Archive: How to parameterize which files the installer should use


How to parameterize which files the installer should use
Hi

I would like my script to be able to read a kind of .ini file or something like that at compiletime and use the content of the file when naming the OUTPUTFile and the files to pack in the .exe file. Does anybody know how to do that?


You'll need to create a separate EXE that would read the INI and generate a header file with all the FILE commands you need (based on what you find in the INI file).

Then, you include that header file with your main NSI script.

This wiki article should get you started:
http://nsis.sourceforge.net/Invoking...n_compile-time