我的代码是:
; DIMM_V2 Easy NSIS GUI Script
!include MUI2.nsh
!define MUI_CUSTOMFUNCTION_GUIINIT dimm_hide
!include "page1.nsdinc"
!include "page2.nsdinc"
!include "page3.nsdinc"
!define MUI_HEADERIMAGE # need to load custom exe
!define MUI_UI_HEADERIMAGE ".\dimm_beta_img.exe" ; dimm 1018 my bmp image !
; !define MUI_UI_HEADERIMAGE ".\modern.exe" ; dimm 1018 my bmp image !
; dimm code for switching pages is is inside of pages .nsdinc
Page custom fnc_page1_Show
Page custom fnc_page2_Show
Page custom fnc_page3_Show
; Page custom dimm_hide
; !insertmacro MUI_PAGE_WELCOME
; !insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
; !insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English
; BringToFront
; Destroy a window.
!macro DestroyWindow HWND IDC
GetDlgItem $R0 ${HWND} ${IDC}
System::Call `user32::DestroyWindow(i R0)`
!macroend
; 106 this page is Details Page
Function dimm_hide
; dimm hide ; need to hide 1256 /// 1037
!insertmacro DestroyWindow $HWNDPARENT 1045 # dimm remove line from bottom
!insertmacro DestroyWindow $HWNDPARENT 1256 # dimm remove line from bottom
!insertmacro DestroyWindow $HWNDPARENT 1037 # dimm remove line from bottom
!insertmacro DestroyWindow $HWNDPARENT 1028 # dimm remove line from bottom
FunctionEnd
Section
SectionEnd
使用 NSIS 安装程序,我想在 MUI_PAGE_INSTFILES 页面“MUI_PAGE_INSTFILES”上设置静态背景图像 感谢您的帮助。