【问题标题】:How detect launch NSIS installer with arguments如何使用参数检测启动 NSIS 安装程序
【发布时间】:2012-11-29 21:24:44
【问题描述】:

我有 NSIS 安装程序。 如何使用参数检测启动 NSIS 安装程序?

例如installer.exe /DEBUG

【问题讨论】:

    标签: nsis


    【解决方案1】:

    GetOptions:

    !include FileFunc.nsh
    !include LogicLib.nsh
    
    Function .onInit
    ${GetParameters} $0
    ClearErrors
    ${GetOptions} $0 "/DEBUG" $1
    ${IfNot} ${Errors}
        MessageBox mb_ok "Debug"
    ${EndIf}
    FunctionEnd
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-13
      • 2021-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多