如何跳过NSIS“组件”页面?

时间:2010-11-04 05:46:15

标签: user-interface components usability nsis

我正在使用NSIS为只有一个可安装组件的Java应用程序创建安装程序(带有“Modern”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,但是无法做出它的头部和尾部。

1 个答案:

答案 0 :(得分:5)

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