initplugins, start menu folder selection, new paging system, fixes

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1644 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2002-11-09 17:58:22 +00:00
parent 02e181ca0f
commit 4103e6cd77
6 changed files with 123 additions and 59 deletions

View file

@ -137,14 +137,17 @@ with a custom user interface.</p>
!define MUI_COMPONENTSPAGE ;Component-selection page
!define MUI_DIRECTORYPAGE ;Directory-selection page
!define MUI_LICENSEPAGE ;License page
!define MUI_STARTMENUPAGE ;Start Menu-selection page
!define MUI_ABORTWARNING ;Abort warning messagebox
!define MUI_INSTALLOPTIONS ;Install Options
!define MUI_CUSTOMPAGECOMMANDS ;Use customized pages
!define MUI_WINDOWTITLE ;Insert string for the window title
!define MUI_UNINSTALLER ;Uninstaller
!define MUI_UNINSTALLOPTIONS ;Install Options in Uninstaller
!define MUI_CUSTOMPAGECOMMANDS ;Use customized uninstaller pages
!define MUI_UNCUSTOMPAGECOMMANDS ;Use customized uninstaller pages
</pre>
<p class="text">MUI_WINDOWTITLE is required by MUI_(UN)INSTALLOPTIONS_WRITETITLE.
<p class="subheader">4. Insert language files</span></p>
<p class="text">Insert the Modern UI language files for the languages you are using:</p>
<pre class="margin">!insertmacro MUI_LANGUAGE "English"</pre>
@ -158,6 +161,11 @@ with a custom user interface.</p>
</pre>
<p class="text">Have a look at the language files for a complete list of all the
names.
<p class="text"><span class="bold">NOTE:</span> Not all language files contain strings for the
new Start Menu-selection page yet. If you are using a language file which does not contain
these strings, you should always define them.<br>Please help to translate the new strings and
post them at the <a href="http://forums.winamp.com/forumdisplay.php?forumid=65">NSIS
Forum</a>.</p>
<p class="subheader">5. Define interface settings (optional)</span></p>
<p class="text">You can change the settings of the interface by usings defines:</p>
<pre class="margin">!define MUI_UI "${NSISDIR}\Contrib\UIs\modern2.exe"</pre>
@ -217,9 +225,8 @@ SectionEnd
<p class="text">Have a look at the <a href="..\InstallOptions\Install Options.html">
Install Options documentation</a> for info about creating Install Options INI Files.</p>
<p class="subheader">Custom page commands</p>
<p class="text">If you want add custom pages to your installer using Install Options,
you should insert you own page commands to set the order of the pages and the names
of the page functions.</p>
<p class="text">If you want add custom pages to your installer, you should insert you
own page commands to set the order of the pages and the names of the page functions.</p>
<pre class="margin">
!insertmacro MUI_PAGECOMMAND_LICENSE
!insertmacro MUI_PAGECOMMAND_COMPONENTS
@ -242,19 +249,23 @@ LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install Options Page"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Create your own dialog!"
Function [function name]
!insertmacro MUI_HEADER_TEXT $(TEXT_IO_TITLE) $(TEXT_IO_SUBTITLE)
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_SHOW "ioFile.ini"
FunctionEnd
</pre>
<p class="subheader">Write title and abortwarning</p>
<p class="subheader">Write title to Install Options INI Files</p>
<p class="text">Use these macro's in .onInit to write the page
title and abortwarning to an INI File.</p>
title to an Install Options INI File.</p>
<pre class="margin">
LangString TEXT_IO_PAGETITLE ${LANG_ENGLISH} "Page Title"
!insertmacro MUI_INSTALLOPTIONS_WRITETITLE "ioFile.ini" "$(TEXT_IO_PAGETITLE)"
!insertmacro MUI_INSTALLOPTIONS_WRITEABORTWARNING "ioFile.ini" \
"$(TEXT_IO_PAGETITLE)"
</pre>
<p class="text">For the uninstaller, use:</p>
<pre class="margin">
LangString UNTEXT_IO_PAGETITLE ${LANG_ENGLISH} "Uninstaller Page Title"
!insertmacro MUI_UNINSTALLOPTIONS_WRITETITLE "ioFile.ini" "$(UNTEXT_IO_PAGETITLE)"
</pre>
<p class="header"><a name="examples">Examples</a></p>
<p class="text">Basic: <a href="../../Examples/Modern UI/Basic.nsi">Basic.nsi</a><br>
@ -283,7 +294,7 @@ The 'verifying installer' and 'unpacking data' texts are defined in
To change them, you need to edit this file and recompile NSIS.</p>
<p class="header">Version history</p>
<ul>
<li class="changelog">1.5 - November 8, 2002
<li class="changelog">1.5 - November 9, 2002
<ul>
<li>New language file format
<li>Language strings can be changed in the script without editing
@ -291,6 +302,8 @@ The 'verifying installer' and 'unpacking data' texts are defined in
<li>Install Options macro's updated. MUI_INSTALLOPTIONS_DISPLAY is
the standard macro now. Use MUI_INSTALLOPTIONS_INITDIALOG and
MUI_INSTALLOPTIONS_SHOW if you want to customize dialog controls.
<li>Start Menu Folder selection page
<li>Compatible with new paging system
<li>Renamed macro's and defines
<li>Some small fixes
</ul>