您的位置:首页 > 其它

How can I let the compiled script depend on something dynamic

2014-02-26 16:01 141 查看
Compile your script with /DNAME=value or /X"nsis command" passed on to makensis.exe as command line arguments. The /D switch of the compiler will define NAME as value in the script. The /X switch will add "nsis command" to the top of the script.

Example:

In the compiling script:

ExecWait "makensis.exe /DVERSION=1.2 myscript.nsi"

In the compiled dynamic script:

OutFile myprog${VERSION}.exe

Note - These flags *must* be specified on a makensis command line before you specify the script name. If you have "makensis.exe myscript.nsi /DVERSION=1.2 " then VERSION will not be set.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐