uahmed
21st June 2011 05:36 UTC
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
MSG
21st June 2011 06:34 UTC
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.
Yathosho
21st June 2011 09:36 UTC
put something like this in your script
OutFile ${OUTFILE}
then you can use
makensis.exe /DOUTFILE="My Great Installer.exe"