diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 58a4e188..d10c9434 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -242,6 +242,13 @@ follow these steps:
The following settings are available: (default values)
MUI_UI (${NSISDIR}\Contrib\UIs\modern.exe)
The interface file with the dialog resources. Change this if you have made your own customized UI.
MUI_UI_HEADERBITMAP, MUI_UI_HEADERBITMAP_RIGHT
+ (${NSISDIR}\Contrib\UIs\modern-headerbmp(r).exe)
+ The interface files with the dialog resource IDD_INST that contains a bitmap control and space for
+ the header bitmap.
MUI_UI_SMALLDESCRIPTION, MUI_UI_NODESCRIPTION
+ (${NSISDIR}\Contrib\UIs\modern-(small/no)desc.exe)
+ The interface files with a customized dialog resource IDD_SELCOM for a small or no description area.
MUI_ICON (${NSISDIR}\Contrib\Icons\modern-install.ico)
The icon of the installer.
MUI_UNICON (${NSISDIR}\Contrib\Icons\modern-uninstall.ico)
@@ -461,10 +468,10 @@ ReserveFile "ioFile.ini" ;Your own InstallOptions INI files
Welcome/Finish page: WelcomeFinish.nsi
Customize the dialogs
-To change elements on the dialogs, modify modern.exe - in the Contrib\UIs directory using a resource editor such as +
To change elements on the dialogs, modify the + resource files Contrib\UIs directory using a resource editor such as Resource Hacker - and use the MUI_UI define to use your customized UI.
+ and use the interface setting to define to filename use your customized UI.The 'Please wait while Setup is loading...' text on the splash screen which is being displayed when the installer is starting (Verifying installer, Unpacking data) cannot be changed diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 45f9c96a..eb90e5b6 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -34,6 +34,22 @@ !ifndef MUI_UI !define MUI_UI "${NSISDIR}\Contrib\UIs\modern.exe" !endif + + !ifndef MUI_UI_HEADERBITMAP + !define MUI_UI_HEADERBITMAP "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe" + !endif + + !ifndef MUI_UI_HEADERBITMAP_RIGHT + !define MUI_UI_HEADERBITMAP_RIGHT "${NSISDIR}\Contrib\UIs\modern_headerbmpr.exe" + !endif + + !ifndef MUI_UI_SMALLDESCRIPTION + !define MUI_UI_SMALLDESCRIPTION "${NSISDIR}\Contrib\UIs\modern_smalldesc.exe" + !endif + + !ifndef MUI_UI_NODESCRIPTION + !define MUI_UI_NODESCRIPTION "${NSISDIR}\Contrib\UIs\modern_nodesc.exe" + !endif !ifndef MUI_ICON !define MUI_ICON "${NSISDIR}\Contrib\Icons\modern-install.ico" @@ -111,27 +127,27 @@ ChangeUI all "${MUI_UI}" !ifdef MUI_HEADERBITMAP !ifndef MUI_HEADERBITMAP_RIGHT - ChangeUI IDD_INST "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe" + ChangeUI IDD_INST "${MUI_UI_HEADERBITMAP}" !else - ChangeUI IDD_INST "${NSISDIR}\Contrib\UIs\modern_headerbmpr.exe" + ChangeUI IDD_INST "${MUI_UI_HEADERBITMAP_RIGHT}" !endif !endif !ifdef MUI_COMPONENTSPAGE_SMALLDESC - ChangeUI IDD_SELCOM "${NSISDIR}\Contrib\UIs\modern_smalldesc.exe" + ChangeUI IDD_SELCOM "${MUI_UI_SMALLDESCRIPTION}" !else ifdef MUI_COMPONENTSPAGE_NODESC - ChangeUI IDD_SELCOM "${NSISDIR}\Contrib\UIs\modern_nodesc.exe" + ChangeUI IDD_SELCOM "${MUI_UI_NODESCRIPTION}" !endif !else ChangeUI /RTL all "${MUI_UI}" !ifndef MUI_HEADERBITMAP_RIGHT - ChangeUI /RTL IDD_INST "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe" + ChangeUI /RTL IDD_INST "${MUI_UI_HEADERBITMAP}" !else - ChangeUI /RTL IDD_INST "${NSISDIR}\Contrib\UIs\modern_headerbmpr.exe" + ChangeUI /RTL IDD_INST "${MUI_UI_HEADERBITMAP_RIGHT}" !endif !ifdef MUI_COMPONENTSPAGE_SMALLDESC - ChangeUI /RTL IDD_SELCOM "${NSISDIR}\Contrib\UIs\modern_smalldesc.exe" + ChangeUI /RTL IDD_SELCOM "${MUI_UI_SMALLDESCRIPTION}" !else ifdef MUI_COMPONENTSPAGE_NODESC - ChangeUI /RTL IDD_SELCOM "${NSISDIR}\Contrib\UIs\modern_nodesc.exe" + ChangeUI /RTL IDD_SELCOM "${MUI_UI_NODESCRIPTION}" !endif !endif