首页 > 其他 > 详细

How can I let the compiled script depend on something dynamic

时间:2014-02-27 14:07:03      阅读:271      评论:0      收藏:0      [点我收藏+]

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.

How can I let the compiled script depend on something dynamic,布布扣,bubuko.com

How can I let the compiled script depend on something dynamic

原文:http://www.cnblogs.com/foohack/p/3569485.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!