1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>NSIS Modern User Interface - Documentation</title>
- <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
- <style type="text/css">
- /*<![CDATA[*/body
- {
- padding: 10px;
- background-color: #F0F0F0;
- font-size: 13px;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: normal;
- text-align: justify;
- }
- p, li
- {
- font-size: 13px;
- }
- table
- {
- margin: auto;
- background-color: #FFFFFF;
- }
- .maintable
- {
- border: 2px solid #376EAB;
- }
- .parameter
- {
- font-weight: bold;
- color: #6586AC;
- }
- h1
- {
- font-size: 20px;
- color: #7A7272;
- font-weight: normal;
- }
- h2
- {
- font-size: 17px;
- font-weight: bold;
- color: #303030;
- }
- h3
- {
- font-size: 14px;
- font-weight: bold;
- color: #2B5885;
- }
- pre
- {
- font-size: 13px;
- }
- div
- {
- margin: 20px;
- }
- div.settings
- {
- margin-right: 0;
- }
- a:link, a:visited, a:active
- {
- color: #294F75;
- text-decoration: none;
- }
- a:hover
- {
- color: #182634;
- text-decoration: underline;
- }
- .trigger
- {
- cursor: pointer;
- cursor: hand;
- height: 14px;
- }
- .toggle
- {
- display: none;
- }
- .options
- {
- text-align: center;
- cursor: pointer;
- cursor: hand;
- color: #294F75;
- }
- /*]]>*/</style>
- <script type="text/javascript">
- //<![CDATA[
- var image_open = new Image();
- image_open.src = "images/open.gif";
- var image_closed = new Image();
- image_closed.src = "images/closed.gif";
-
- function toggle(image, section) {
-
- if(document.all) {
- if(document.all[section].style.display == "block") {
- document.all[section].style.display = "none";
- document.all[image].src = image_closed.src;
- }
- else
- {
- document.all[section].style.display = "block";
- document.all[image].src = image_open.src;
- }
- }
- else
- {
- if(document.getElementById(section).style.display == "block") {
- document.getElementById(section).style.display = "none";
- document.getElementById(image).src = image_closed.src;
- }
- else
- {
- document.getElementById(section).style.display = "block";
- document.getElementById(image).src = image_open.src;
- }
- }
-
- }
- function expandall() {
- var divNodeList = document.getElementsByTagName('div');
- for (i = 0; i < divNodeList.length; i++) {
- if(divNodeList[i].id) {
- divNodeList[i].style.display = "block";
- document.getElementById('trigger_' + divNodeList[i].id.substr(7)).src = "images/open.gif";
- }
- }
-
- }
- function collapseall() {
- var divNodeList = document.getElementsByTagName('div');
- for (i = 0; i < divNodeList.length; i++) {
- if(divNodeList[i].id) {
- divNodeList[i].style.display = "none";
- document.getElementById('trigger_' + divNodeList[i].id.substr(7)).src = "images/closed.gif";
- }
- }
- }
- //]]>
- </script>
- </head>
- <body>
- <table width="750" class="maintable" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td>
- <img src="images/header.gif" width="750" height="80" alt="" />
- <p class="options">
- <a onclick="expandall()">[Expand all]</a> <a onclick="collapseall()">[Collapse
- all]</a></p>
- <div>
- <h1>
- Introduction</h1>
- <div>
- <p>
- The Modern UI provides a user interface for NSIS installers with a modern wizard
- style, similar to the wizards of recent Windows versions. It is based on the basic
- user interface that is provided by the NSIS compiler itself and extends it with
- more interface features and pages.</p>
- <p>
- All standard NSIS pages (such as the pages to select components and the installation
- folder) are supported as well as a number of additional pages. The welcome page
- allows you to provide an introduction to the installation process, while the finish
- page provides a way to let the user decide what steps should be performed after
- the setup wizard is closed (for example, whether the application should be started
- immediately). A finish page can also be used to ask for a system restart is necessary.</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_scr" src="images/closed.gif"
- onclick="toggle('trigger_scr', 'toggle_scr');" />
- Screenshots</h3>
- <div class="toggle" id="toggle_scr">
- <p>
- <img src="images/screen1.png" width="503" height="393" alt="" /></p>
- <p>
- <img src="images/screen2.png" width="503" height="393" alt="" /></p>
- </div>
- </div>
- <h1>
- Modern UI 2.0</h1>
- <div>
- <p>
- This new version makes it easier to customize pages, because the same method can
- be used to change standard NSIS pages as well as additional pages provided
- by the Modern UI. It is now also possible for other NSIS plug-ins to add new pages
- to the Modern UI. You can expect to see examples of this soon.</p>
- <p>
- The welcome and finish page are no longer implemented using InstallOptions. Instead,
- the new nsDialogs plug-in is used. nsDialogs allows you to create custom pages or
- customize existing pages directly from the script.</p>
- <p>
- To upgrade a Modern UI 1.8 script, you should:</p>
- <ul>
- <li>Insert the MUI2.nsh header file instead of MUI.nsh.</li>
- <li>The macros for InstallOptions have been moved to a separate header file unrelated
- to the Modern UI. If you are still using InstallOptions for custom pages, insert
- InstallOptions.nsh and use the INSTALLOPTIONS_* macros instead of the MUI_INSTALLOPTIONS_*
- macros. The macros themselves have remained the same.</li>
- <li>Rewrite customization code for the Modern UI 1.8 welcome and finish pages in which
- the InstallOptions INI file is used. nsDialogs commands should be used instead.</li>
- <li>Use the standard NSIS method to escape special characters in all texts. For example,
- $\r$\n creates newline.</li>
- </ul>
- </div>
- <h1>
- Script header</h1>
- <div>
- <p>
- The settings for the Modern UI should be inserted in the header of the script file.
- It's important to follow the same order as the items below. For example,
- interface settings should be defined before you insert pages, because the pages
- depend on the interface configuration. It may be useful to look at the <a href="#examples">
- example scripts</a> too see how this is done in actual script files.</p>
- <p>
- Parameters are given in this format: <span class="parameter">required (option1 | option2)
- [optional]</span></p>
- </div>
- <h2>
- 1. Header file</h2>
- <div>
- <p>
- First of all, add this line to the top of script to include the Modern UI:</p>
- <pre>
- !include MUI2.nsh
- </pre>
- </div>
- <h2>
- 2. Interface configuration</h2>
- <div>
- <p>
- Then, you may want to use interface settings to change the look and feel of the
- installer. These settings apply to all pages.<p>
- The interface settings provided by the NSIS compiler itself (such as LicenseText,
- Icon, CheckBitmap, InstallColors) should not be used in Modern UI scripts. The Modern
- UI provides equalivent or extended versions of these settings.<p>
- Examples:</p>
- <pre>
- !define MUI_COMPONENTSPAGE_SMALLDESC ;No value
- !define MUI_UI "myUI.exe" ;Value
- !define MUI_INSTFILESPAGE_COLORS "FFFFFF 000000" ;Two colors
- </pre>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_in" src="images/closed.gif"
- onclick="toggle('trigger_in', 'toggle_in');" />
- Interface settings</h3>
- <div class="toggle" id="toggle_in">
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_ingen" src="images/closed.gif"
- onclick="toggle('trigger_ingen', 'toggle_ingen');" />
- Page header</h3>
- <div class="toggle" id="toggle_ingen">
- <p>
- <strong>MUI_ICON</strong> <span class="parameter">icon_file</span><br />
- The icon for the installer.<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico</em></p>
- <p>
- <strong>MUI_UNICON</strong> <span class="parameter">icon_file</span><br />
- The icon for the uninstaller.<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico</em></p>
- <p>
- <strong>MUI_HEADERIMAGE</strong><br />
- Display an image on the header of the page.</p>
- <div class="settings">
- <p>
- <strong>MUI_HEADERIMAGE_BITMAP</strong> <span class="parameter">bmp_file</span><br />
- Bitmap image to display on the header of installers pages (recommended size: 150x57
- pixels).<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Header\nsis.bmp</em></p>
- <div class="settings">
- <p>
- <strong>MUI_HEADERIMAGE_BITMAP_STRETCH</strong> <span class="parameter">mode</span><br />
- <ul>
- <li><p><strong>FitControl</strong> (Default)<br />
- Stretch the image to fit the image control.</p>
- <li><p><strong>NoStretchNoCropNoAlign</strong><br />
- Do not stretch the image to fit the size of the image control.
- You should not use this option if you have a full size bitmap that fits exactly because
- the size of the field will be different if the user has a custom DPI setting or
- if the installer is using a CJK language.</p>
- <li><p><strong>NoStretchNoCrop</strong><br />
- This is similar to NoStretchNoCropNoAlign but will align the image to the right edge when
- using a RTL language or if MUI_HEADERIMAGE_RIGHT is defined.</p>
- <li><p><strong>AspectFitHeight</strong><br />
- Scale the image up or down until it is the same height as the image control while
- maintaining the image aspect ratio.</p>
- </ul>
- </p>
- <p>
- <strong>MUI_HEADERIMAGE_BITMAP_RTL</strong> <span class="parameter">bmp_file</span><br />
- Bitmap image to display on the header of installers pages when using a RTL language
- (recommended size: 150x57 pixels).<br />
- <em>Default: Non-RTL bitmap</em></p>
- <div class="settings">
- <p>
- <strong>MUI_HEADERIMAGE_BITMAP_RTL_STRETCH</strong> <span class="parameter">mode</span><br />
- See MUI_HEADERIMAGE_BITMAP_STRETCH for a list of the available stretch modes.</p>
- </div>
- </div>
- <p>
- <strong>MUI_HEADERIMAGE_UNBITMAP</strong> <span class="parameter">bmp_file</span><br />
- Bitmap image to display on the header of uninstaller pages (recommended size: 150x57
- pixels).<br />
- <em>Default: Installer header bitmap</em></p>
- <div class="settings">
- <p>
- <strong>MUI_HEADERIMAGE_UNBITMAP_STRETCH</strong> <span class="parameter">mode</span><br />
- See MUI_HEADERIMAGE_BITMAP_STRETCH for a list of the available stretch modes.</p>
- <p>
- <strong>MUI_HEADERIMAGE_UNBITMAP_RTL</strong> <span class="parameter">bmp_file</span><br />
- Bitmap image to display on the header of uninstallers pages when using a RTL language
- (recommended size: 150x57 pixels).<br />
- <em>Default: Installer RTL header bitmap</em></p>
- <div class="settings">
- <p>
- <strong>MUI_HEADERIMAGE_UNBITMAP_RTL_STRETCH</strong> <span class="parameter">mode</span><br />
- See MUI_HEADERIMAGE_BITMAP_STRETCH for a list of the available stretch modes.</p>
- </div>
- </div>
- <p>
- <strong>MUI_HEADERIMAGE_RIGHT</strong><br />
- Display the header image on the right side instead of the left side (when using
- a RTL language it will be displayed on the left side instead of the right side).</p>
- </div>
- <p>
- <strong>MUI_BGCOLOR</strong> <span class="parameter">(color: RRGGBBR hexadecimal)</span><br />
- Background color for the header, the Welcome page and the Finish page.<br />
- <em>Default: FFFFFF</em></p>
- <p>
- <strong>MUI_HEADER_TRANSPARENT_TEXT</strong><br />
- Set a transparent background for the header's label controls. Useful for custom
- user interfaces that set a bigger header image.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inres" src="images/closed.gif"
- onclick="toggle('trigger_inres', 'toggle_inres');" />
- Interface resources</h3>
- <div class="toggle" id="toggle_inres">
- <p>
- <strong>MUI_UI</strong> <span class="parameter">ui_file</span><br />
- The interface file with the dialog resources. Change this if you have made your
- own customized UI.<br />
- <em>Default: ${NSISDIR}\Contrib\UIs\modern.exe</em></p>
- <p>
- <strong>MUI_UI_HEADERIMAGE</strong> <span class="parameter">ui_file</span><br />
- The interface files with the dialog resource IDD_INST that contains a bitmap control
- and space for the header bitmap.<br />
- <em>Default: ${NSISDIR}\Contrib\UIs\modern_headerbmp.exe</em></p>
- <p>
- <strong>MUI_UI_HEADERIMAGE_RIGHT</strong> <span class="parameter">ui_file</span><br />
- The interface files with the dialog resource IDD_INST that contains a bitmap control
- and space for the header bitmap on the right side.<br />
- <em>Default: ${NSISDIR}\Contrib\UIs\modern_headerbmpr.exe</em></p>
- <p>
- <strong>MUI_UI_COMPONENTSPAGE_SMALLDESC</strong> <span class="parameter">ui_file</span><br />
- The interface files with a customized dialog resource IDD_SELCOM with a small description
- area.<br />
- <em>Default: ${NSISDIR}\Contrib\UIs\modern_smalldesc.exe</em></p>
- <p>
- <strong>MUI_UI_COMPONENTSPAGE_NODESC</strong> <span class="parameter">ui_file</span><br />
- The interface files with a customized dialog resource IDD_SELCOM without a description
- area.<br />
- <em>Default: ${NSISDIR}\Contrib\UIs\modern_nodesc.exe</em></p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inwf" src="images/closed.gif"
- onclick="toggle('trigger_inwf', 'toggle_inwf');" />
- Installer welcome/finish page</h3>
- <div class="toggle" id="toggle_inwf">
- <p>
- <strong>MUI_WELCOMEFINISHPAGE_BITMAP</strong> <span class="parameter">bmp_file</span><br />
- Bitmap for the Welcome page and the Finish page (recommended size: 164x314 pixels).<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Wizard\win.bmp</em></p>
- <div class="settings">
- <p>
- <strong>MUI_WELCOMEFINISHPAGE_BITMAP_STRETCH</strong> <span class="parameter">mode</span><br />
- See MUI_HEADERIMAGE_BITMAP_STRETCH for a list of the available stretch modes.</p>
- </div>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inuwf" src="images/closed.gif"
- onclick="toggle('trigger_inuwf', 'toggle_inuwf');" />
- Uninstaller welcome/finish page</h3>
- <div class="toggle" id="toggle_inuwf">
- <p>
- <strong>MUI_UNWELCOMEFINISHPAGE_BITMAP</strong> <span class="parameter">bmp_file</span><br />
- Bitmap for the Welcome page and the Finish page (recommended size: 164x314 pixels).<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Wizard\win.bmp</em></p>
- <div class="settings">
- <p>
- <strong>MUI_UNWELCOMEFINISHPAGE_BITMAP_STRETCH</strong> <span class="parameter">mode</span><br />
- See MUI_HEADERIMAGE_BITMAP_STRETCH for a list of the available stretch modes.</p>
- </div>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inl" src="images/closed.gif"
- onclick="toggle('trigger_inl', 'toggle_inl');" />
- License page</h3>
- <div class="toggle" id="toggle_inl">
- <p>
- <strong>MUI_LICENSEPAGE_BGCOLOR</strong> <span class="parameter">(/windows | /grey |
- (color: RRGGBB hexadecimal))</span><br />
- The background color for the license textbox. Use /windows for the Windows text
- background color (usually white). Use the /grey for the window background color
- (usually grey).<br />
- <em>Default: /windows</em></p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inc" src="images/closed.gif"
- onclick="toggle('trigger_inc', 'toggle_inc');" />
- Components page</h3>
- <div class="toggle" id="toggle_inc">
- <p>
- <strong>MUI_COMPONENTSPAGE_CHECKBITMAP</strong> <span class="parameter">bitmap_file</span><br />
- The bitmap with images for the checks of the component select treeview.<br />
- <em>Default: ${NSISDIR}\Contrib\Graphics\Checks\modern.bmp</em></p>
- <p>
- <strong>MUI_COMPONENTSPAGE_SMALLDESC</strong><br />
- A small description area on the bottom of the page. Use this layout if you have
- a lot of sections and don't need large descriptions.</p>
- <p>
- <strong>MUI_COMPONENTSPAGE_NODESC</strong><br />
- No description area.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_ind" src="images/closed.gif"
- onclick="toggle('trigger_ind', 'toggle_ind');" />
- Directory page</h3>
- <div class="toggle" id="toggle_ind">
- <p>
- <strong>MUI_DIRECTORYPAGE_BGCOLOR</strong> <span class="parameter">(color: RRGGBB hexadecimal)</span><br />
- The background color for the directory textbox.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_ins" src="images/closed.gif"
- onclick="toggle('trigger_ins', 'toggle_ins');" />
- Start Menu folder page</h3>
- <div class="toggle" id="toggle_ins">
- <p>
- <strong>MUI_STARTMENUPAGE_BGCOLOR</strong> <span class="parameter">(color: RRGGBB hexadecimal)</span><br />
- The background color for the startmenu directory list and textbox.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_ini" src="images/closed.gif"
- onclick="toggle('trigger_ini', 'toggle_ini');" />
- Installation page</h3>
- <div class="toggle" id="toggle_ini">
- <p>
- <strong>MUI_INSTFILESPAGE_COLORS</strong> <span class="parameter">(/windows | "(foreground
- color: RRGGBB hexadecimal) (background color: RRGGBB hexadecimal)")</span><br />
- The colors of the details screen. Use /windows for the default Windows colors.<br />
- <em>Default: /windows</em></p>
- <p>
- <strong>MUI_INSTFILESPAGE_PROGRESSBAR</strong> <span class="parameter">(""
- | colored | smooth)</span><br />
- The style of the progress bar. Colored makes it use the MUI_INSTALLCOLORS.<br />
- <em>Default: smooth</em></p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inf" src="images/closed.gif"
- onclick="toggle('trigger_inf', 'toggle_inf');" />
- Installer finish page</h3>
- <div class="toggle" id="toggle_inf">
- <p>
- <strong>MUI_FINISHPAGE_NOAUTOCLOSE</strong><br />
- Do not automatically jump to the finish page, to allow the user to check the install
- log.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_uinf" src="images/closed.gif"
- onclick="toggle('trigger_uinf', 'toggle_uinf');" />
- Uninstaller finish page</h3>
- <div class="toggle" id="toggle_uinf">
- <p>
- <strong>MUI_UNFINISHPAGE_NOAUTOCLOSE</strong><br />
- Do not automatically jump to the finish page, to allow the user to check the uninstall
- log.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inaw" src="images/closed.gif"
- onclick="toggle('trigger_inaw', 'toggle_inaw');" />
- Abort warning</h3>
- <div class="toggle" id="toggle_inaw">
- <p>
- <strong>MUI_ABORTWARNING</strong><br />
- Show a message box with a warning when the user wants to close the installer.</p>
- <div class="settings">
- <p>
- <strong>MUI_ABORTWARNING_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the abort warning message box.</p>
- <p>
- <strong>MUI_ABORTWARNING_CANCEL_DEFAULT</strong><br />
- Set the Cancel button as the default button on the message box.</p>
- </div>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_inuaw" src="images/closed.gif"
- onclick="toggle('trigger_inuaw', 'toggle_inuaw');" />
- Uninstaller abort warning</h3>
- <div class="toggle" id="toggle_inuaw">
- <p>
- <strong>MUI_UNABORTWARNING</strong><br />
- Show a message box with a warning when the user wants to close the uninstaller.</p>
- <div class="settings">
- <p>
- <strong>MUI_UNABORTWARNING_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the abort warning message box.</p>
- <p>
- <strong>MUI_UNABORTWARNING_CANCEL_DEFAULT</strong><br />
- Set the Cancel button as the default button on the message box.</p>
- </div>
- </div>
- </div>
- </div>
- <h2>
- 3. Pages</h2>
- <div>
- <p>
- Insert the following macros to set the pages you want to use. The pages will appear
- in the order in which you insert them in the script. You can also insert custom
- Page commands between the macros to add custom pages.</p>
- <p>
- You can add multiple pages of certain types (for example, if you want the user to
- specify multiple folders).</p>
- <p>
- Examples:</p>
- <pre>
- !insertmacro MUI_PAGE_LICENSE "License.rtf"
- !insertmacro MUI_PAGE_COMPONENTS
- Var StartMenuFolder
- !insertmacro MUI_PAGE_STARTMENU "Application" $StartMenuFolder
- </pre>
- <p>
- You will need the page ID for the Start Menu folder page when using the Start Menu
- folder macros. The folder will be stored in the specified variable.</p>
- <p>
- <strong>Installer pages</strong><br />
- MUI_PAGE_WELCOME<br />
- MUI_PAGE_LICENSE <span class="parameter">textfile</span><br />
- MUI_PAGE_COMPONENTS<br />
- MUI_PAGE_DIRECTORY<br />
- MUI_PAGE_STARTMENU <span class="parameter">pageid variable</span><br />
- MUI_PAGE_INSTFILES<br />
- MUI_PAGE_FINISH</p>
- <p>
- <strong>Uninstaller pages</strong><br />
- MUI_UNPAGE_WELCOME<br />
- MUI_UNPAGE_CONFIRM<br />
- MUI_UNPAGE_LICENSE <span class="parameter">textfile</span><br />
- MUI_UNPAGE_COMPONENTS<br />
- MUI_UNPAGE_DIRECTORY<br />
- MUI_UNPAGE_INSTFILES<br />
- MUI_UNPAGE_FINISH</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pg" src="images/closed.gif"
- onclick="toggle('trigger_pg', 'toggle_pg');" />
- Page settings</h3>
- <div class="toggle" id="toggle_pg">
- <p>
- Page settings apply to a single page and should be set before inserting a page macro.
- The same settings can be used for installer and uninstaller pages. You have to repeat
- the setting if you want it to apply to multiple pages. Example:</p>
- <pre>
- ;Add a directory page to let the user specify a plug-ins folder
- ;Store the folder in $PluginsFolder
- Var PLUGINS_FOLDER
- !define MUI_DIRECTORYPAGE_VARIABLE $PluginsFolder
- !insertmacro MUI_PAGE_DIRECTORY
- </pre>
- <p>
- <p>
- All standard texts in the user interface are loaded from language files, which are
- available for all languages supported by NSIS. So you only need to define these
- texts if you want to change the default.</p>
- <p>
- If the parameter is a text that should be different for each language, define a
- language string using LangString and use $(LangStringName) as value. For a license
- text in multiple languages, LicenseLangString can be used. Refer the NSIS Users
- Manual for more information about installers with multiple languages.</p>
- <p>
- In all text settings, the doublequote character (") should be escaped in the
- following form: $\"</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgg" src="images/closed.gif"
- onclick="toggle('trigger_pgg', 'toggle_pgg');" />
- General page settings</h3>
- <div class="toggle" id="toggle_pgg">
- <p>
- <strong>MUI_PAGE_HEADER_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the header of the page.</p>
- <p>
- <strong>MUI_PAGE_HEADER_SUBTEXT</strong> <span class="parameter">text</span><br />
- Subtext to display on the header of the page.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgw" src="images/closed.gif"
- onclick="toggle('trigger_pgw', 'toggle_pgw');" />
- Welcome page settings</h3>
- <div class="toggle" id="toggle_pgw">
- <p>
- <strong>MUI_WELCOMEPAGE_TITLE</strong> <span class="parameter">title</span><br />
- Title to display on the top of the page.</p>
- <p>
- <strong>MUI_WELCOMEPAGE_TITLE_3LINES</strong><br />
- Extra space for the title area.</p>
- <p>
- <strong>MUI_WELCOMEPAGE_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the page.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgl" src="images/closed.gif"
- onclick="toggle('trigger_pgl', 'toggle_pgl');" />
- License page settings</h3>
- <div class="toggle" id="toggle_pgl">
- <p>
- <strong>MUI_LICENSEPAGE_TEXT_TOP</strong> <span class="parameter">text</span><br />
- Text to display on the top of the page.</p>
- <p>
- <strong>MUI_LICENSEPAGE_TEXT_BOTTOM</strong> <span class="parameter">text</span><br />
- Text to display on the bottom of the page.</p>
- <p>
- <strong>MUI_LICENSEPAGE_BUTTON</strong> <span class="parameter">button_text</span><br />
- Text to display on the 'I Agree' button.</p>
- <p>
- <strong>MUI_LICENSEPAGE_CHECKBOX</strong><br />
- Display a checkbox the user has to check to agree with the license terms.</p>
- <div class="settings">
- <p>
- <strong>MUI_LICENSEPAGE_CHECKBOX_TEXT</strong> <span class="parameter">text</span><br />
- Text to display next to the checkbox to agree with the license terms.</p>
- </div>
- <p>
- <strong>MUI_LICENSEPAGE_RADIOBUTTONS</strong><br />
- Display two radio buttons to allow the user to choose between accepting the license
- terms or not.</p>
- <div class="settings">
- <p>
- <strong>MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_ACCEPT</strong> <span class="parameter">text</span><br />
- Text to display next to the checkbox to accept the license terms.</p>
- <p>
- <strong>MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE</strong> <span class="parameter">text</span><br />
- Text to display next to the checkbox to decline the license terms.</p>
- </div>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgc" src="images/closed.gif"
- onclick="toggle('trigger_pgc', 'toggle_pgc');" />
- Components page settings</h3>
- <div class="toggle" id="toggle_pgc">
- <p>
- <strong>MUI_COMPONENTSPAGE_TEXT_TOP</strong> <span class="parameter">text</span><br />
- Text to display on the top of the page.</p>
- <p>
- <strong>MUI_COMPONENTSPAGE_TEXT_COMPLIST</strong> <span class="parameter">text</span><br />
- Text to display on next to the components list.</p>
- <p>
- <strong>MUI_COMPONENTSPAGE_TEXT_INSTTYPE</strong> <span class="parameter">text</span><br />
- Text to display on next to the installation type combo box.</p>
- <p>
- <strong>MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE</strong> <span class="parameter">text</span><br />
- Text to display on the of the top of the description box.</p>
- <p>
- <strong>MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO</strong> <span class="parameter">text</span><br />
- Text to display inside the description box when no section is selected.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgd" src="images/closed.gif"
- onclick="toggle('trigger_pgd', 'toggle_pgd');" />
- Directory page settings</h3>
- <div class="toggle" id="toggle_pgd">
- <p>
- <strong>MUI_DIRECTORYPAGE_TEXT_TOP</strong> <span class="parameter">text</span><br />
- Text to display on top of the page.</p>
- <p>
- <strong>MUI_DIRECTORYPAGE_TEXT_DESTINATION</strong> <span class="parameter">text</span><br />
- Text to display on the destination folder frame.</p>
- <p>
- <strong>MUI_DIRECTORYPAGE_VARIABLE</strong> <span class="parameter">variable</span><br />
- Variable in which to store the selected folder.<br />
- <em>Default: $INSTDIR</em></p>
- <p>
- <strong>MUI_DIRECTORYPAGE_VERIFYONLEAVE</strong><br />
- Does not disable the Next button when a folder is invalid but allows you to use
- GetInstDirError in the leave function to handle an invalid folder.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgs" src="images/closed.gif"
- onclick="toggle('trigger_pgs', 'toggle_pgs');" />
- Start Menu folder page settings</h3>
- <div class="toggle" id="toggle_pgs">
- <p>
- <strong>MUI_STARTMENUPAGE_TEXT_TOP</strong> <span class="parameter">text</span><br />
- Text to display on the top of the page.</p>
- <p>
- <strong>MUI_STARTMENUPAGE_TEXT_CHECKBOX</strong> <span class="parameter">text</span><br />
- Text to display next to the checkbox to disable the Start Menu folder creation.</p>
- <p>
- <strong>MUI_STARTMENUPAGE_DEFAULTFOLDER</strong> <span class="parameter">folder</span><br />
- The default Start Menu Folder.</p>
- <p>
- <strong>MUI_STARTMENUPAGE_NODISABLE</strong><br />
- Do not display the checkbox to disable the creation of Start Menu shortcuts.</p>
- <p>
- <strong>MUI_STARTMENUPAGE_REGISTRY_ROOT</strong> <span class="parameter">root</span><br />
- <strong>MUI_STARTMENUPAGE_REGISTRY_KEY</strong> <span class="parameter">key</span><br />
- <strong>MUI_STARTMENUPAGE_REGISTRY_VALUENAME</strong> <span class="parameter">value_name</span><br />
- The registry key to store the Start Menu folder. The page will use it to remember
- the users preference. You should also use for the uninstaller to remove the Start
- Menu folders. Don't forget to remove this key during uninstallation.</p>
- <p>
- For the uninstaller, use the MUI_STARTMENU_GETFOLDER macro to get the Start Menu
- folder:</p>
- <pre>
- !insertmacro MUI_STARTMENU_GETFOLDER page_id $R0
- Delete "$SMPROGRAMS\$R0\Your Shortcut.lnk"
- </pre>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgi" src="images/closed.gif"
- onclick="toggle('trigger_pgi', 'toggle_pgi');" />
- Installation page settings</h3>
- <div class="toggle" id="toggle_pgi">
- <p>
- <strong>MUI_INSTFILESPAGE_FINISHHEADER_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the header of the installation page when the installation has
- been completed (won't be displayed when using a Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).</p>
- <p>
- <strong>MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT</strong> <span class="parameter">text</span><br />
- Subtext to display on the header of the installation page when the installation
- has been completed (won't be displayed when using a Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).</p>
- <p>
- <strong>MUI_INSTFILESPAGE_ABORTHEADER_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the header of the installation page when the installation has
- been aborted.</p>
- <p>
- <strong>MUI_INSTFILESPAGE_ABORTHEADER_SUBTEXT</strong> <span class="parameter">text</span><br />
- Subext to display on the header of the installation page when the installation has
- been aborted.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgf" src="images/closed.gif"
- onclick="toggle('trigger_pgf', 'toggle_pgf');" />
- Finish page settings</h3>
- <div class="toggle" id="toggle_pgf">
- <p>
- <strong>MUI_FINISHPAGE_TITLE</strong> <span class="parameter">title</span><br />
- Title to display on the top of the page.</p>
- <p>
- <strong>MUI_FINISHPAGE_TITLE_3LINES</strong><br />
- Extra space for the title area.</p>
- <p>
- <strong>MUI_FINISHPAGE_TEXT</strong> <span class="parameter">text</span><br />
- Text to display on the page.</p>
- <p>
- <strong>MUI_FINISHPAGE_TEXT_LARGE</strong><br />
- Extra space for the text area (if using checkboxes).</p>
- <p>
- <strong>MUI_FINISHPAGE_BUTTON</strong> <span class="parameter">text</span><br />
- Text to display on the Finish button.</p>
- <p>
- <strong>MUI_FINISHPAGE_CANCEL_ENABLED</strong><br />
- Enable the Cancel button so the user can skip any options displayed on the finish
- page.</p>
- <p>
- <strong>MUI_FINISHPAGE_TEXT_REBOOT</strong> <span class="parameter">text</span><br />
- Text to display on the finish page when asking for a system reboot.</p>
- <p>
- <strong>MUI_FINISHPAGE_TEXT_REBOOTNOW</strong> <span class="parameter">text</span><br />
- Text to display next to the 'Reboot now' option button.</p>
- <p>
- <strong>MUI_FINISHPAGE_TEXT_REBOOTLATER</strong> <span class="parameter">text</span><br />
- Text to display next to the 'Reboot later' option button.</p>
- <p>
- <strong>MUI_FINISHPAGE_REBOOTLATER_DEFAULT</strong><br />
- Sets the 'Reboot later' option as the default option.</p>
- <p>
- <strong>MUI_FINISHPAGE_RUN</strong> <span class="parameter">exe_file</span><br />
- Application which the user can select to run using a checkbox. You don't need to
- put quotes around the filename when it contains spaces.</p>
- <div class="settings">
- <p>
- <strong>MUI_FINISHPAGE_RUN_TEXT</strong> <span class="parameter">text</span><br />
- Texts to display next to the 'Run program' checkbox.</p>
- <p>
- <strong>MUI_FINISHPAGE_RUN_PARAMETERS</strong> <span class="parameter">parameters</span><br />
- Parameters for the application to run. Don't forget to escape double quotes in the
- value (use $\").</p>
- <p>
- <strong>MUI_FINISHPAGE_RUN_NOTCHECKED</strong><br />
- Do not check the 'Run program' checkbox by default</p>
- <p>
- <strong>MUI_FINISHPAGE_RUN_FUNCTION</strong> <span class="parameter">function</span><br />
- Call a function instead of executing an application (define MUI_FINISHPAGE_RUN without
- parameters). You can use the function to execute multiple applications or you can
- change the checkbox name and use it for other things.</p>
- </div>
- <p>
- <strong>MUI_FINISHPAGE_SHOWREADME</strong> <span class="parameter">file/url</span><br />
- File or website which the user can select to view using a checkbox. You don't need
- to put quotes around the filename when it contains spaces.</p>
- <div class="settings">
- <p>
- <strong>MUI_FINISHPAGE_SHOWREADME_TEXT</strong> <span class="parameter">text</span><br />
- Texts to display next to the 'Show Readme' checkbox.</p>
- <p>
- <strong>MUI_FINISHPAGE_SHOWREADME_NOTCHECKED</strong><br />
- Do not check the 'Show Readme' checkbox by default</p>
- <p>
- <strong>MUI_FINISHPAGE_SHOWREADME_FUNCTION</strong> <span class="parameter">function</span><br />
- Call a function instead of showing a file (define MUI_FINISHPAGE_SHOWREADME without
- parameters). You can use the function to show multiple files or you can change the
- checkbox name and use it for other things.</p>
- </div>
- <p>
- <strong>MUI_FINISHPAGE_LINK</strong> <span class="parameter">link_text</span><br />
- Text for a link on the which the user can click to view a website or file.</p>
- <div class="settings">
- <p>
- <strong>MUI_FINISHPAGE_LINK_LOCATION</strong> <span class="parameter">file/url</span><br />
- Website or file which the user can select to view using the link. You don't need
- to put quotes around the filename when it contains spaces.</p>
- <p>
- <strong>MUI_FINISHPAGE_LINK_COLOR</strong> <span class="parameter">(color: RRGGBB hexadecimal)</span><br />
- Text color for the link on the Finish page.<br />
- <em>Default: 000080</em></p>
- </div>
- <p>
- <strong>MUI_FINISHPAGE_NOREBOOTSUPPORT</strong><br />
- Disables support for the page that allows the user to reboot the system. Define
- this option to save some space if you are not using the /REBOOTOK flag or SetRebootFlag.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_pgu" src="images/closed.gif"
- onclick="toggle('trigger_pgu', 'toggle_pgu');" />
- Uninstall confirm page settings</h3>
- <div class="toggle" id="toggle_pgu">
- <p>
- <strong>MUI_UNCONFIRMPAGE_TEXT_TOP</strong> <span class="parameter">text</span><br />
- Text to display on the top of the page.</p>
- <p>
- <strong>MUI_UNCONFIRMPAGE_TEXT_LOCATION</strong> <span class="parameter">text</span><br />
- Text to display next to the uninstall location text box.</p>
- <p>
- <strong>MUI_UNCONFIRMPAGE_VARIABLE</strong> <span class="parameter">variable</span><br />
- Variable in which to store the uninstall source folder.<br />
- <em>Default: $INSTDIR</em></p>
- </div>
- </div>
- </div>
- <h2>
- 4. Language files</h2>
- <div>
- <p>
- Insert the Modern UI language files for the languages to want to include.</p>
- <pre>
- !insertmacro MUI_LANGUAGE "English"
- </pre>
- <p>
- The standard NSIS language files are loaded automatically, there is no need to use
- LoadLanguageFile.</p>
- </div>
- <h2>
- 5. Reserve files</h2>
- <div>
- <p>
- If you are using solid compression, files that are required before the actual installation
- should be stored first in the data block, because this will make your installer
- start faster. Include reserve file commands for such files before your sections
- and functions:</p>
- <pre>
- ReserveFile /plugin MyPlugin.dll
- !insertmacro MUI_RESERVEFILE_LANGDLL ;Language selection dialog
- ...
- </pre>
- </div>
- <h1>
- Script code for pages</h1>
- <div>
- <p>
- Some pages allow you to show additional information or can be used to get user input.
- Here you can find the script code to use these features.</p>
- <h2>
- Components page descriptions</h2>
- <div>
- <p>
- The Modern UI components page has a text box in which a description can be shown
- when the user hovers the mouse over a component. If you don't want to use these
- descriptions, insert the MUI_COMPONENTSPAGE_NODESC interface setting.</p>
- <p>
- To set a description for a section, an additional parameter needs to be added to
- Section commmand with a unique identifier for the section. This name can later be
- used to set the description for this section.</p>
- <pre>
- Section "Section Name 1" Section1
- ...
- SectionEnd
- </pre>
- <p>
- After the sections, use these macros to set the descriptions:</p>
- <pre>
- LangString DESC_Section1 ${LANG_ENGLISH} "Description of section 1."
- LangString DESC_Section2 ${LANG_ENGLISH} "Description of section 2."
- !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
- !insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
- !insertmacro MUI_FUNCTION_DESCRIPTION_END
- </pre>
- <p>
- For the uninstaller, use the MUI_UNFUNCTION_DESCRIPTION_BEGIN and MUI_UNFUNCTION_DESCRIPTION_END
- macros.</p>
- </div>
- <h2>
- Start Menu folder</h2>
- <div>
- <p>
- Put the code to write the shortcuts (using CreateShortcut) between the MUI_STARTMENU_WRITE_BEGIN
- and MUI_STARTMENU_WRITE_END macros:</p>
- <pre>
- !insertmacro MUI_STARTMENU_WRITE_BEGIN pageid
- ...create shortcuts...
- !insertmacro MUI_STARTMENU_WRITE_END
- </pre>
- <p>
- The page ID should be the ID of the page on which the user has selected the folder
- for the shortcuts you want to write.</p>
- <p>
- The variable which contains the folder and the page ID are set as parameters of
- the page macro.</p>
- </div>
- </div>
- <h1>
- Language selection dialog</h1>
- <div>
- <p>
- If you want the installer to display a language selection dialog (see the the <a
- href="../../Examples/Modern%20UI/MultiLanguage.nsi">MultiLanguage.nsi</a> example),
- insert the MUI_LANGDLL_DISPLAY macro in the .onInit function:</p>
- <pre>
- Function .onInit
- !insertmacro MUI_LANGDLL_DISPLAY
- FunctionEnd
- </pre>
- <p>
- This macro can also be used in the un.onInit function.</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_lss" src="images/closed.gif"
- onclick="toggle('trigger_lss', 'toggle_lss');" />
- Settings for registry storage of selected language</h3>
- <div class="toggle" id="toggle_lss">
- <p>
- To remember the user's preference, you can define a registry key. These defines
- should be set before inserting the installation page macro.</p>
- <p>
- <strong>MUI_LANGDLL_REGISTRY_ROOT</strong> <span class="parameter">root</span><br />
- <strong>MUI_LANGDLL_REGISTRY_KEY</strong> <span class="parameter">key</span><br />
- <strong>MUI_LANGDLL_REGISTRY_VALUENAME</strong> <span class="parameter">value_name</span><br />
- The registry key to store the language. The users preference will be remembered.
- You can also use it for the uninstaller to display the right language. Don't forget
- to remove this key in the uninstaller.</p>
- <p>
- For the uninstaller, insert the MUI_UNGETLANGUAGE macro in un.onInit to get the
- stored language preference:</p>
- <pre>
- Function un.onInit
- !insertmacro MUI_UNGETLANGUAGE
- FunctionEnd
- </pre>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_lsin" src="images/closed.gif"
- onclick="toggle('trigger_lsin', 'toggle_lsin');" />
- Interface settings for selection dialog</h3>
- <div class="toggle" id="toggle_lsin">
- <p>
- To customize the language selection dialog interface, use these defines before inserting
- the MUI_LANGDLL_DISPLAY macro.</p>
- <p>
- <strong>MUI_LANGDLL_WINDOWTITLE</strong> <span class="parameter">text</span><br />
- The window title of the language selection dialog.</p>
- <p>
- <strong>MUI_LANGDLL_INFO</strong> <span class="parameter">text</span><br />
- The text to display on the language selection dialog.</p>
- <p>
- <strong>MUI_LANGDLL_ALWAYSSHOW</strong><br />
- Always show the language selection dialog, even if a language has been stored in
- the registry. The language stored in the registry will be selected by default.</p>
- <p>
- <strong>MUI_LANGDLL_ALLLANGUAGES</strong><br />
- Always show all available languages and don't filter according to their codepage.</p>
- </div>
- </div>
- <h1>
- Custom pages</h1>
- <div>
- <p>
- If you want add your custom pages to your installer, you can insert your own page
- commands between the page macros.</p>
- <pre>
- !insertmacro MUI_PAGE_WELCOME
- Page custom FunctionName ;Custom page
- !insertmacro MUI_PAGE_COMPONENTS
-
- ;Uninstaller
- !insertmacro MUI_UNPAGE_CONFIRM
- UninstPage custom un.FunctionName ;Custom page
- !insertmacro MUI_UNPAGE_INSTFILES
- </pre>
- <p>
- Use the MUI_HEADER_TEXT macro to set the text on the page header in a page function:</p>
- <pre>
- LangString PAGE_TITLE ${LANG_ENGLISH} "Title"
- LangString PAGE_SUBTITLE ${LANG_ENGLISH} "Subtitle"
- Function CustomPageFunction
- !insertmacro MUI_HEADER_TEXT $(PAGE_TITLE) $(PAGE_SUBTITLE)
- ...
- FuctionEnd
- </pre>
- </div>
- <h1>
- Custom functions</h1>
- <div>
- <p>
- Interface functions provided by NSIS, like the .onGUIInit function and the page
- functions are automatically included by the Modern UI and filled with code to support
- new interface features. If you want to add additional code to these function, create
- a function with the custom script code in the script use the Modern UI functions
- call them.</p>
- <p>
- Example:</p>
- <pre class="text">
- !define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
- Function myGUIInit
- ...
- FunctionEnd</pre>
- <p>
- Modern UI pages can also customized using custom functions.</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_cfg" src="images/closed.gif"
- onclick="toggle('trigger_cfg', 'toggle_cfg');" />
- General Custom Functions</h3>
- <div class="toggle" id="toggle_cfg">
- <p>
- These defines should be set before inserting the language macros.</p>
- <p>
- <strong>MUI_CUSTOMFUNCTION_GUIINIT</strong> <span class="parameter">function</span><br />
- <strong>MUI_CUSTOMFUNCTION_UNGUIINIT</strong> <span class="parameter">function</span><br />
- <strong>MUI_CUSTOMFUNCTION_ABORT</strong> <span class="parameter">function</span><br />
- <strong>MUI_CUSTOMFUNCTION_UNABORT</strong> <span class="parameter">function</span><br />
- <strong>MUI_CUSTOMFUNCTION_ONMOUSEOVERSECTION</strong> <span class="parameter">function</span><br />
- <strong>MUI_CUSTOMFUNCTION_UNONMOUSEOVERSECTION</strong> <span class="parameter">function</span></p>
- <p>
- Mouse over functions are only available when the description macros
- (MUI_FUNCTION_DESCRIPTION_BEGIN) are used. When component page descriptions are not
- used, regular .onMouseOverSection and un.onMouseOverSection must be used.</p>
- </div>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_cfpg" src="images/closed.gif"
- onclick="toggle('trigger_cfpg', 'toggle_cfpg');" />
- Page Custom Functions</h3>
- <div class="toggle" id="toggle_cfpg">
- <p>
- These defines should be set before inserting a page macro.</p>
- <p>
- <strong>MUI_PAGE_CUSTOMFUNCTION_PRE</strong> <span class="parameter">function</span><br />
- <strong>MUI_PAGE_CUSTOMFUNCTION_SHOW</strong> <span class="parameter">function</span><br />
- <strong>MUI_PAGE_CUSTOMFUNCTION_LEAVE</strong> <span class="parameter">function</span><br />
- </p>
- <p>
- The pre function is called first and allows you to initalize variables or decide
- whether the page should be skipped. Then, the show function is called, which can
- be used to customize the interface. Finally, the user input can be validated in the
- leave function. The NSIS Users Manual provides more information about these functions.</p>
- <p>
- In the show function, the window handles of all controls on the page can be retrieved
- from a Modern UI variable. A list of the variables names is not yet available. For
- now, refer to the source files of the Modern UI 2.0. The variable declarations can
- be found in the first lines of the header file for a certain page.</p>
- </div>
- </div>
- <h1>
- <a name="examples" id="examples">Example scripts</a></h1>
- <div>
- <p>
- Basic: <a href="../../Examples/Modern%20UI/Basic.nsi">Basic.nsi</a><br />
- Welcome/Finish page: <a href="../../Examples/Modern%20UI/WelcomeFinish.nsi">WelcomeFinish.nsi</a><br />
- Multiple languages: <a href="../../Examples/Modern%20UI/MultiLanguage.nsi">MultiLanguage.nsi</a><br />
- Header image: <a href="../../Examples/Modern%20UI/HeaderBitmap.nsi">HeaderBitmap.nsi</a><br />
- Start Menu Folder page: <a href="../../Examples/Modern%20UI/StartMenu.nsi">StartMenu.nsi</a></p>
- </div>
- <h1>
- Credits</h1>
- <div>
- <p>
- Written by Joost Verburg.<br />
- Icons designed by Nikos Adamamas, aka adni18.<br />
- Thanks to Amir Szekely, aka KiCHiK, for his work on NSIS to make this possible.</p>
- </div>
- <h1>
- License</h1>
- <div>
- <p>
- The zlib/libpng license applies to the Modern UI.</p>
- <h3>
- <img class="trigger" alt="Open/Close section" id="trigger_lic" src="images/closed.gif"
- onclick="toggle('trigger_lic', 'toggle_lic');" />
- License Terms</h3>
- <div class="toggle" id="toggle_lic">
- <pre>
- Copyright © 2002-2017 Joost Verburg
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software.
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute
- it freely, subject to the following restrictions:
- 1. The origin of this software must not be misrepresented;
- you must not claim that you wrote the original software.
- If you use this software in a product, an acknowledgment in the
- product documentation would be appreciated but is not required.
- 2. Altered versions must be plainly marked as such,
- and must not be misrepresented as being the original software.
- 3. This notice may not be removed or altered from any distribution.
- </pre>
- </div>
- </div>
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>
|