NSIS Installer Name
Asked Answered
S

1

7

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.

Subtropics answered 7/5, 2010 at 13:22 Comment(0)
S
9

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
Substitute answered 7/5, 2010 at 17:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.