location of LangDLL registry settings

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3005 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2003-10-08 18:00:36 +00:00
parent 633f5928cd
commit 17e3886e51
2 changed files with 24 additions and 12 deletions

View file

@ -470,7 +470,7 @@ will also help you to learn more about the Modern UI.</p>
<pre class="margin">!insertmacro MUI_LANGUAGE "English"</pre>
<p class="text">The Modern UI language files load the NLF language files,
so you should not use LoadLanguageFile.</p>
<p class="sub2header">Customize fonts</p>
<p class="sub2header">Customize Fonts</p>
<div class="margin">
<p class="text">You can customize the fonts for a language using the following defines before inserting
a language.</p>
@ -484,7 +484,7 @@ will also help you to learn more about the Modern UI.</p>
The font for the title on the Welcome and Finish page.</p>
<p class="text"><span class="bold">Note: </span>Page texts can be changed using page settings.</p>
</div>
<p class="sub2header">Language selection dialog</p>
<p class="sub2header">Language Selection Dialog</p>
<div class="margin">
<p class="text">If you want the installer to display a language selection dialog
(have a look at the <a href="../../Examples/Modern UI/MultiLanguage.nsi">
@ -496,11 +496,10 @@ Function .onInit
FunctionEnd
</pre>
<p class="text">To customize the language selection dialog, use these defines before inserting the macro.</p>
<p class="text"><span class="bold">MUI_LANGDLL_WINDOWTITLE </span><span class="parameter">text</span><br />
The window title of the language selection dialog.</p>
<p class="text"><span class="bold">MUI_LANGDLL_INFO </span><span class="parameter">text</span><br />
The text to display on the language selection dialog.</p>
<p class="sub2header">Language Selection Dialog Settings</p>
<div class="margin">
<p class="text">To remember to users preference, you can define a registry key.<br />
<span class="bold">Note:</span> These defines should be set before inserting the instfiles page macro.</p>
<p class="text"><span class="bold">MUI_LANGDLL_REGISTRY_ROOT </span><span class="parameter">root</span><br />
<span class="bold">MUI_LANGDLL_REGISTRY_KEY </span><span class="parameter">key</span><br />
<span class="bold">MUI_LANGDLL_REGISTRY_VALUENAME </span><span class="parameter">value_name</span><br />
@ -516,10 +515,20 @@ Function un.onInit
FunctionEnd
</pre>
</div>
<p class="sub2header">Language Selection Dialog Interface Settings</p>
<div class="margin">
<p class="text">To customize the language selection dialog interface, use these defines before inserting
the MUI_LANGDLL_DISPLAY macro.</p>
<p class="text"><span class="bold">MUI_LANGDLL_WINDOWTITLE </span><span class="parameter">text</span><br />
The window title of the language selection dialog.</p>
<p class="text"><span class="bold">MUI_LANGDLL_INFO </span><span class="parameter">text</span><br />
The text to display on the language selection dialog.</p>
<p class="text"><span class="bold">MUI_LANGDLL_ALWAYSSHOW</span><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>
</div>
</div>
<p class="subheader">6. Reserve files</p>
<p class="text">If you are using BZIP2 (solid) compression, it's important that
files which are being extracted in init- or page functions function are located

View file

@ -25,6 +25,14 @@
!define MUI_ABORTWARNING
;--------------------------------
;Language Selection Dialog Settings
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\Modern UI Test"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;--------------------------------
;Pages
@ -100,11 +108,6 @@ SectionEnd
Function .onInit
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\Modern UI Test"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd