Accessing command line arguments in NSIS

前端 未结 2 915
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 12:16

I am trying to make my setups scripts modular. I am calling setup exe\'s from within main setup script based to the requirements. I want to pass command line arguments to th

相关标签:
2条回答
  • 2020-12-30 12:50

    Try to get options from Command line by their name: http://nsis.sourceforge.net/Get_command_line_parameter_by_name

    0 讨论(0)
  • 2020-12-30 13:07

    you can use GetOptions function (FileFunc.nsh must be included above). Following example shows p parameter reading; its value is saved into the variable. $CMDLINE is your command line (absolute or relative, as you called) containing also your parameters.

    !include FileFunc.nsh
    
    Var variable    
    ${GetOptions} $CMDLINE "/p" $variable
    
    0 讨论(0)
提交回复
热议问题