Archive: Argument Passing to nsi file


Argument Passing to nsi file
Hi

I am new in nsis scripting . I want to do argument logic with nsis script . Like i want to putt the outputfile name as a argument of nsis .

./makensis.exe installer.nsi <OUTPUT_FILE_NAME>

If its possible then how to use this value with in script .

Many thanks


http://nsis.sourceforge.net/Docs/Chapter3.html

I see no mention of an outfile parameter. So what you can do is write your desired outfile command to an outfile.nsh and then !include that at the top of your nsi script.


put something like this in your script

OutFile ${OUTFILE}

then you can use

makensis.exe /DOUTFILE="My Great Installer.exe"