Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS Installer Name

Is it possible to set the nsis installer file generated when compiling the installer?

something like:

makensis /ExeFile:myInstall-v4.1.2.3.exe install.nsi

That would be keen.

like image 550
James Thigpen Avatar asked May 07 '10 13:05

James Thigpen


1 Answers

You can define a symbol on the command line using the /D switch like so:

makensis /DMyInstallerName="myInstall-v4.1.2.3.exe" install.nsi

Then in your install script:

!ifdef MyInstallerName
    OutFile "${MyInstallerName}"
!else
    OutFile "myInstall.exe"
!endif
like image 197
Kyle Gagnet Avatar answered Oct 05 '22 22:10

Kyle Gagnet