diff --git a/Contrib/Modern UI/Changelog.txt b/Contrib/Modern UI/Changelog.txt index 28801268..4029cb5f 100644 --- a/Contrib/Modern UI/Changelog.txt +++ b/Contrib/Modern UI/Changelog.txt @@ -1,6 +1,8 @@ NSIS Modern User Interface - VERSION HISTORY -1.62 - December 20, 2002 +1.62 - February 2, 2003 +* Final version for NSIS 2 beta 0 +* Possibility to let a Modern UI Function call your own function * No problems anymore when using both 'Run program' and 'Show Readme' on the finish page * Default state of checkboxes on the finish page can be changed diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index df337eba..57140f4e 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -246,13 +246,18 @@ follow these steps:

Bitmap for the Welcome and Finish page.

MUI_BGCOLOR (0xFFFFFF)
Background color for the header, Welcome page and Finish page, hexadecimal. (0xBBGGRR)

-

6. Insert the MUI_SYSTEM macro

+

6. Define custom functions (optional)

+

If you want add your own code to functions inserted by the + Modern UI, such as the .onGUIInit function and the Page function, create your + own function and let the Modern UI functions call them..

+

More info...

+

7. Insert the MUI_SYSTEM macro

!insertmacro MUI_SYSTEM
-

7. Insert custom pages (optional)

+

8. Insert custom pages (optional)

If you want to use custom pages (define MUI_CUSTOMPAGECOMMANDS or MUI_UNCUSTOMPAGECOMMANDS!), insert them before inserting the language files.

More info...

-

7. Insert language files

+

9. 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, @@ -281,7 +286,7 @@ Uninstaller section:

 !insertmacro MUI_UNFINISHHEADER
 
-

9. Set the descriptions for the sections

+

10. 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. @@ -440,23 +445,78 @@ ReserveFile "ioFile.ini" ;Your own InstallOptions INI files To change them, you need to edit this file and recompile NSIS.

To modify the Welcome and Finish dialog, edit the Install 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) on the right -position and insert the MUI_GUIINIT (MUI_UNGUIINIT for the uninstaller) macro -in your .onGUIInit or un.onGUInit function:

+

Customize Modern UI Functions

+

If you want add your own code to functions inserted by the +Modern UI, such as the .onGUIInit function and the Page function, create your +own function and let the Modern UI functions call them. Use these +defines to define the name of your functions:

+

+GUI Init
+MUI_CUSTOMFUNCTION_GUIINIT
+MUI_CUSTOMFUNCTION_UNGUIINIT +

+

+Welcome Page
+MUI_CUSTOMFUNCTION_WELCOME +

+

+License Page
+MUI_CUSTOMFUNCTION_LICENSE_PRE
+MUI_CUSTOMFUNCTION_LICENSE_SHOW
+MUI_CUSTOMFUNCTION_LICENSE_LEAVE +

+

+Components Page
+MUI_CUSTOMFUNCTION_COMPONENTS_PRE
+MUI_CUSTOMFUNCTION_COMPONENTS_SHOW
+MUI_CUSTOMFUNCTION_COMPONENTS_LEAVE +

+

+Directory Page
+MUI_CUSTOMFUNCTION_DIRECTORY_PRE
+MUI_CUSTOMFUNCTION_DIRECTORY_SHOW
+MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE +

+

+Start Menu Folder Page
+MUI_CUSTOMFUNCTION_STARTMENU
+

+

+Install Files Page
+MUI_CUSTOMFUNCTION_INSTFILES_PRE
+MUI_CUSTOMFUNCTION_INSTFILES_SHOW
+MUI_CUSTOMFUNCTION_INSTFILES_LEAVE +

+

+Finish Page
+MUI_CUSTOMFUNCTION_FINISH
+

+

+Uninstaller - Confirm Page
+MUI_UNCUSTOMFUNCTION_LICENSE_PRE
+MUI_UNCUSTOMFUNCTION_LICENSE_SHOW
+MUI_UNCUSTOMFUNCTION_LICENSE_LEAVE +

+

+Uninstaller - Uninstall Files Page
+MUI_UNCUSTOMFUNCTION_INSTFILES_PRE
+MUI_UNCUSTOMFUNCTION_INSTFILES_SHOW
+MUI_UNCUSTOMFUNCTION_INSTFILES_LEAVE +

+

Example:

-!define MUI_CUSTOMGUIINIT
+!define MUI_CUSTOMFUNCTION_ONGUIINIT .ownGuiInit
 
-Function .onGUIInit
-  !insertmacro MUI_GUIINIT
+Function .ownGUIInit
   ...your own code...
 FunctionEnd
 

Version history