Skip to content
⌘ NSIS Forum Archive

How to parameterize which files the installer should use

2 posts

kasperih#

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?
Comperio#
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: