【发布时间】:2010-05-07 13:22:14
【问题描述】:
是否可以设置编译安装程序时生成的nsis安装程序文件?
类似:
makensis /ExeFile:myInstall-v4.1.2.3.exe install.nsi
那太好了。
【问题讨论】:
标签: installation nsis
是否可以设置编译安装程序时生成的nsis安装程序文件?
类似:
makensis /ExeFile:myInstall-v4.1.2.3.exe install.nsi
那太好了。
【问题讨论】:
标签: installation nsis
您可以使用 /D 开关在 command line 上定义符号,如下所示:
makensis /DMyInstallerName="myInstall-v4.1.2.3.exe" install.nsi
然后在你的安装脚本中:
!ifdef MyInstallerName
OutFile "${MyInstallerName}"
!else
OutFile "myInstall.exe"
!endif
【讨论】: