NSIS 滚动许可证欢迎屏幕 [英] NSIS Scroll License Welcome Screen

查看:49
本文介绍了NSIS 滚动许可证欢迎屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的安装程序在与滚动许可证插件交互时遇到问题.安装程序在没有插件的情况下运行良好,这是插件包含的内容:

I have an installer that is having problems interacting with the scroll license plugin. The installer works great without the plugin, this is what the plugin has me include:

!

include MUI.nsh

!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_LICENSE "EULA.txt"

unction LicenseShow
 ScrollLicense::Set /NOUNLOAD
FunctionEnd

Function .onGUIEnd
 ScrollLicense::Unload
FunctionEnd

Section A 
Section End

我遇到的问题就在这里.如果欢迎页面显示在许可证页面之前,它将无法进入下一个屏幕,因为它正在寻找滚动条和接受按钮.如果我删除 WELCOME 页面,一切正常.有没有人有这个插件的经验?或者如何让插件忽略 MUI_PAGE_WELCOME?

The problem I run into is here. If the Welcome page displays BEFORE the License page it will not be able to progress to the next screen because it is looking for a scroll bar and accept button. If I remove the WELCOME page everything works fine. Does anyone have experience with this plugin? or how I can get the plugin to ignore the MUI_PAGE_WELCOME?

!insertmacro MUI_PAGE_WELCOME <--- If I remove this Welcome page everything works great!
!insertmacro MUI_PAGE_LICENSE "eula.rtf" 
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

推荐答案

尝试移动行:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow

该行下方(更具体地说,直接在 MUI_PAGE_LICENSE 行上方):

Below the line (more specifically, directly above the MUI_PAGE_LICENSE line):

!insertmacro MUI_PAGE_WELCOME

我使用了 ScrollLicense 插件提供的 ExampleCheckBox.nsi 并重现了您的行为:

I used ExampleCheckBox.nsi as supplied from the ScrollLicense plugin and reproduced your behavior when I had:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE ExampleCheckBox.nsi

当我将 !define 行移到 MUI_PAGE_WELCOME 之后,问题就消失了.

The problem went away when I moved the !define line to after the MUI_PAGE_WELCOME.

!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_LICENSE ExampleCheckBox.nsi

我不熟悉这个插件,但我怀疑有某种副作用会禁用下一个显示页面的下一步"按钮...

I'm not familiar with this plugin but I suspect there is some kind of side-effect that disables the Next button of the next displayed page...

这篇关于NSIS 滚动许可证欢迎屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆