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.

相关文章:

  • 2021-11-26
  • 2021-05-20
  • 2021-11-17
  • 2021-11-29
  • 2021-09-20
  • 2021-12-21
  • 2022-01-29
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2021-10-21
  • 2022-12-23
  • 2021-09-14
  • 2021-10-15
  • 2021-07-06
相关资源
相似解决方案