From 5a9b108b6c8a6aa3dda928f0dc151eb8cad2ffa7 Mon Sep 17 00:00:00 2001
From: joostverburg
4. Insert language files
+4. Insert custom pages (optional)
+If you want to use custom pages (define MUI_CUSTOMPAGECOMMANDS + or MUI_UNCUSTOMPAGECOMMANDS!), you should insert them now.
+ +5. Insert language files
Insert the Modern UI language files for the languages you are using:
!insertmacro MUI_LANGUAGE "English"
The Modern UI language files load the NLF language files, so you should not use LoadLanguageFile.
You don't need to edit the language files if you want to customize some strings. Use defines before you insert the language file:
-+-!define MUI_INNERTEXT_LICENSE_TOP "Text on the top of the license dialog" !insertmacro MUI_LANGUAGE "English"@@ -234,7 +238,7 @@ add the following things (in order, from the beginning of the script): pages and the language file does not contain these strings, you should always define them.
Please help to translate the new strings and post them at the NSIS Forum. -5. Define interface settings (optional)
+6. Define interface settings (optional)
You can also change the settings of the interface by using defines:
!define MUI_UI "${NSISDIR}\Contrib\UIs\modern2.exe"If you don't define a setting, the default will be used.
@@ -265,20 +269,20 @@ add the following things (in order, from the beginning of the script): Install Options INI File for the Welcome and Finish pages.MUI_SPECIALBITMAP (${NSISDIR}\Contrib\Icons\modern-wizard.bmp)
-
Bitmap for the Welcome and Finish pages.6. Insert the MUI_SYSTEM macro
+7. Insert the MUI_SYSTEM macro
!insertmacro MUI_SYSTEM-7. Insert the MUI_SECTIONS_FINISHHEADER macro +
8. Insert the MUI_SECTIONS_FINISHHEADER macro
If you are not using a Finish page without defining MUI_FINISHPAGE_NOAUTOCLOSEWINDOW and have not set AutoCloseWindow to true, you should insert the MUI_SECTIONS_FINISHHEADER - after all the sections to display the finish-header:
+ after all the sections to display the finish header:!insertmacro MUI_SECTIONS_FINISHHEADERFor the uninstaller, insert MUI_UNFINISHHEADER at the end of the Uninstaller section:
!insertmacro MUI_UNFINISHHEADER-8. Set the descriptions for the sections
+9. Set the descriptions for the sections
Insert the description macro's to set the descriptions for the sections. These descriptions will be displayed on the component selection page, when the users hovers the mouse over a section. @@ -299,7 +303,7 @@ Section "Section Name 1" Section1 ... SectionEnd
Custom pages
+
Custom page commands
If you want add custom pages to your installer, you should insert your @@ -324,7 +328,8 @@ UninstPage custom un.FunctionName $(UNTEXT_IO_WINDOWTITLE) ;A custom page !insertmacro MUI_UNPAGECOMMAND_INSTFILES
Don't forget to define MUI_CUSTOMPAGECOMMANDS or -MUI_UNCUSTOMPAGECOMMANDS before inserting the MUI_SYSTEM macro.
+MUI_UNCUSTOMPAGECOMMANDS and to insert the Page commands before +on the right position.Call Install Options
Have a look at the Install Options documentation for info about creating Install Options INI Files.
@@ -382,8 +387,8 @@ FunctionEnd Options INI File ioWizard.ini in the 'Contrib\Modern UI' directory.Customize the GUIInit function
If you want to insert your own code in the .onGUIInit function, -define MUI_CUSTOMGUIINIT (MUI_UNCUSTOMGUIINIT for the uninstaller) before inserting -MUI_SYSTEM and insert the MUI_GUIINIT (MUI_UNGUIINIT for the uninstaller) macro +define MUI_CUSTOMGUIINIT (MUI_UNCUSTOMGUIINIT for the uninstaller) on the right +position and insert the MUI_GUIINIT (MUI_UNGUIINIT for the uninstaller) macro in your .onGUIInit or un.onGUInit function:
!define MUI_CUSTOMGUIINIT