我正在创建一个自定义页面,并尝试更改不同的页面区域,但无法弄清楚我是如何在不同的位置尝试过几件事。
这里是我正在寻找的机会(我可以像许可页面一样但不能找出自定义页面的代码)
!define MUI_LICENSEPAGE_TEXT_TOP "Change Log of ${PRODUCT_NAME} v${PRODUCT_VERSION}"
!define MUI_LICENSEPAGE_TEXT_BOTTOM " "
!define MUI_LICENSEPAGE_BUTTON "Next" # or "Next" if you have other pages between the changelog and the InstFiles page
!define MUI_PAGE_HEADER_TEXT "Change Log"
!define MUI_PAGE_HEADER_SUBTEXT "Overview of changes in Drive Content"
这是我正在使用的代码
!define FolderDocs "Included\Docs"
!define FolderImages "Included\Images"
!define FolderAudio "Included\Audio"
!define FolderData "Included\Data"
!define DocLicense "License.txt"
!define DocChangeLog "ChangeLog.txt"
!define DocMustRead "MustRead.txt"
!define ImageIcon "Icon.ico"
!define ImageHDR "HDR.bmp"
!define ImageWF "WF.bmp"
!define ImageSplash "Splash.bmp"
!define PRODUCT_NAME "Test"
!define PRODUCT_VERSION "1.0"
!define MUI_ICON ".\${FolderImages}\${ImageIcon}"
Icon ".\${FolderImages}\${ImageIcon}"
!include WinVer.nsh
!include LogicLib.nsh
!include x64.nsh
!include FileFunc.nsh
!include MUI.nsh
!include WinMessages.nsh
!include InstallOptions.nsh
!include Sections.nsh
!include nsDialogs.nsh
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP ".\${FolderImages}\${ImageHDR}"
!define MUI_WELCOMEFINISHPAGE_BITMAP ".\${FolderImages}\${ImageWF}"
!define MUI_ABORTWARNING
!define MUI_PAGE_HEADER_TEXT "Change Log" #DOES NOT WORK
!define MUI_PAGE_HEADER_SUBTEXT "Overview of changes in Drive Content" #DOES NOT WORK
Page custom SetCustom ValidateCustom
!insertmacro MUI_LANGUAGE "English"
答案 0 :(得分:4)
请参阅readme的“自定义页面”部分?
!include MUI2.nsh
...
Page Custom MyPageCreate
!insertmacro MUI_LANGUAGE "English"
Function MyPageCreate
!insertmacro MUI_HEADER_TEXT "Blah" "blah blah blah"
nsDialogs::...
FunctionEnd