gpt4 book ai didi

user-interface - 如何跳过 NSIS "components"页面?

转载 作者:行者123 更新时间:2023-12-03 07:49:33 29 4
gpt4 key购买 nike

我正在使用 NSIS 为只有一个可安装组件的 Java 应用程序创建安装程序(使用“现代”UI)。在这种情况下向用户显示“组件”页面似乎很愚蠢。我怎样才能隐藏该页面?我尝试在脚本中将其注释掉,如下所示:

...
!insertmacro MUI_PAGE_LICENSE "..\..\..\src\main\nsis\Readme.txt"
;!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
...

但这导致了各种可怕的警告(尽管安装程序似乎确实有效):

[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_BEGIN:4)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_BEGIN:5)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText.Info" detected, ignoring (macro:MUI_DESCRIPTION_BEGIN:6)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_BEGIN:6)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:6)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:7)
[MAKENSIS] warning: unknown variable/constant "mui.ComponentsPage.DescriptionText" detected, ignoring (macro:MUI_DESCRIPTION_TEXT:8)

我发现了一个NSIS wiki entry about skipping pages ,但无法弄清楚它的头尾。

最佳答案

您需要从脚本中删除组件描述宏(MUI_FUNCTION_DESCRIPTION_BEGIN、MUI_DESCRIPTION_TEXT、MUI_FUNCTION_DESCRIPTION_END)

关于user-interface - 如何跳过 NSIS "components"页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4094184/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com