NSIS安装程序名称 [英] NSIS Installer Name

查看:146
本文介绍了NSIS安装程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以设置在编译安装程序时生成的nsis安装程序文件?

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

类似:

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

那会很热心.

推荐答案

您可以在命令行使用/D开关,如下所示:

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

这篇关于NSIS安装程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆