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:
In the compiled dynamic script:
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.
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.
相关文章推荐
- WPF中的MVVM模式:How to render dynamic controls on the fly in MvvM pattern
- How to freeze a dynamic aspx page into a static html page (on the server).
- How can I install the Google Apps Package (Play Store, ...) on my Android device?
- how can i change the back color on mouse out to the color specified in gridview
- How can I get an object's absolute position on the page in Javascript?
- how can display please wait message on the button
- How Can I Minimize a VI to an Icon on the Windows System Tray?
- How to let Sybase connect the db on Mobile
- vector iterator not incrementable For information on how your program can cause an an assertion Failure, see the Visual c + + documentation on asserts
- How to freeze a dynamic aspx page into a static html page (on the server).
- How to freeze a dynamic aspx page into a static html page (on the server).(转:http://codebetter.com/blogs/peter.van.ooijen/archiv
- How You Can Cash In On The Green Gold Rush of 2014
- [转]How can I install the VS2017 version of msbuild on a build server without installing the IDE?
- How to freeze a dynamic aspx page into a static html page (on the server).
- How to add directories to the dynamic library path ld.config on Solaris
- How can I disable the User Account Control (UAC) feature on my Windows Vista computer?
- How to fix the bug 640*480 resolution only when install ubuntu 14.04 on a old laptop?
- Oh no! Something has gone wrong. A problem has ocurred and the system can't recover.
- How can I get the request URL from a Java Filter?
- How can I disable/modify the SSH login banner for a given user?