开发者

NSIS Installer Name

开发者 https://www.devze.com 2022-12-29 06:28 出处:网络
Is it possible to set the nsis installer file generated when compiling the开发者_如何学编程 installer?

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.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消