我是NSIS的初学者,我想在MUI_PAGE_INSTFILES页面中显示自定义文本,因为我在“组件”页面1中有两个选项。安装和2.安装。
因此,当我选择以下选项时,我期待MUI_PAGE_INSTFILES页面中的相应文本。
先谢谢你的帮助。
答案 0 :(得分:1)
CompletedText
属性支持变量:
var mycompletedtext
var myfinishsubtext
CompletedText $mycompletedtext
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "$mycompletedtext"
!define MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT "$myfinishsubtext"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section Installer
StrCpy $mycompletedtext "Installation completed"
StrCpy $myfinishsubtext "Something something"
SectionEnd
Section Uninstaller
StrCpy $mycompletedtext "UnInstallation Completed"
StrCpy $myfinishsubtext "Bye bye"
SectionEnd