Skip to content
⌘ NSIS Forum Archive

Commandline paramaters for build

4 posts

nanami#

Commandline paramaters for build

Can i somehow use commandline parameters for build installer to set some variables?
Laslie#
write a text file
for example temp.txt wich contains:
!define DEF 1

and include your script file
!include temp.txt
MrEyes#
Heres an example of the command line I use to build an installer via a batch file

makensis /DBUILDFLAG=%C% /DVERSION=%V% /DREVISION=%R% "InstallerScript.nsi"

Within the script the /D values are referenced with:

${BUILDFLAG}
${VERSION}
${REVISION}