PDA

View Full Version : How to parameterize which files the installer should use


kasperih
2nd October 2008, 13:17
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?

Comperio
3rd October 2008, 21:05
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_NSIS_run-time_commands_on_compile-time