Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nsis函数跳过页_Nsis - Fatal编程技术网

nsis函数跳过页

nsis函数跳过页,nsis,Nsis,我想创建一个只显示许可证的自定义静默模式。 例如,我已经测试过: !定义MUI\u页面\u自定义功能\u跳过页面前 !insertmacroMUI\u页面\u欢迎使用 函数跳过 ${GetOptions} $CMDLINE "--quiet" $0 ${If} $0 == "--quiet" Abort ${EndIf} 功能端 但是页面没有被跳过,这是个好主意吗?这与跳过页面无关,您只是错误地使用了${GetOptions} 返回的变量包含开关本身之后的数据。如果只想检测交换机,则应

我想创建一个只显示许可证的自定义静默模式。 例如,我已经测试过:

!定义
MUI\u页面\u自定义功能\u跳过页面前

!insertmacro
MUI\u页面\u欢迎使用

函数跳过

${GetOptions} $CMDLINE "--quiet" $0
${If} $0 == "--quiet"
    Abort
${EndIf}
功能端


但是页面没有被跳过,这是个好主意吗?

这与跳过页面无关,您只是错误地使用了
${GetOptions}

返回的变量包含开关本身之后的数据。如果只想检测交换机,则应检查错误:

!include FileFunc.nsh
!include LogicLib.nsh
Function skipPage
${GetParameters} $R0
ClearErrors
${GetOptions} $R0 "--quiet" $0
${IfNot} ${Errors}
    Abort
${EndIf}
FunctionEnd

它可以工作,但也跳过了MUI_PAGE_INSTFILES,我只是想隐藏它
HideWindow
应该可以工作,但是在Reference/HideWindow页面中没有文本。
HideWindow
不需要参数。我的英语不好,所以我有时不理解nsis文件。