简体   繁体   English

NSIS安装程序名称

[英]NSIS Installer Name

Is it possible to set the nsis installer file generated when compiling the installer? 是否可以设置编译安装程序时生成的nsis安装程序文件?

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: 您可以使用/ D开关在命令行上定义符号,如下所示:

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

Then in your install script: 然后在您的安装脚本中:

!ifdef MyInstallerName
    OutFile "${MyInstallerName}"
!else
    OutFile "myInstall.exe"
!endif

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM