脚本:彩色许可页面
优质
小牛编辑
131浏览
2023-12-01
彩色许可页面(绿):
!include "MUI.nsh" Name "Modern UI Test" OutFile "WelcomeFinish.exe" InstallDir "$LOCALAPPDATA\Modern UI Test" !insertmacro MUI_PAGE_WELCOME !define MUI_PAGE_CUSTOMFUNCTION_show LicensePageshow ;更改1 !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_LANGUAGE "SimpChinese" Section SectionEnd Function LicensePageshow ;更改2 SetCtlColors $HWNDPARENT 0xFF0000 0x00FF00 FindWindow $0 "#32770" "" $HWNDPARENT SetCtlColors $0 0xFF0000 0x00FF00 GetDlgItem $1 $0 1040 SetCtlColors $1 0xFF0000 0x00FF00 GetDlgItem $1 $0 1006 SetCtlColors $1 0xFF0000 0x00FF00 FunctionEnd
彩色许可页面(黑):
!include "MUI.nsh" Name "Modern UI Test" OutFile "WelcomeFinish.exe" InstallDir "$LOCALAPPDATA\Modern UI Test" !define MUI_LICENSEPAGE_CHECKBOX !define MUI_PAGE_CUSTOMFUNCTION_show Pageshow ;更改1 !insertmacro MUI_PAGE_WELCOME !define MUI_PAGE_CUSTOMFUNCTION_show LicensePageshow ;更改1 !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_LANGUAGE "SimpChinese" Section SectionEnd Function LicensePageshow ;更改2 SetCtlColors $HWNDPARENT 0xFFFFFF 0x000000 FindWindow $0 "#32770" "" $HWNDPARENT SetCtlColors $0 0xFFFFFF 0x000000 GetDlgItem $1 $0 1040 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $0 1006 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $0 1028 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $0 1034 SetCtlColors $1 0xFFFFFF 0x000000 FunctionEnd Function Pageshow ;更改2 SetCtlColors $HWNDPARENT 0xFFFFFF 0x000000 GetDlgItem $1 $HWNDPARENT 1028 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $HWNDPARENT 1 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $HWNDPARENT 2 SetCtlColors $1 0xFFFFFF 0x000000 GetDlgItem $1 $HWNDPARENT 3 SetCtlColors $1 0xFFFFFF 0x000000 FunctionEnd