From 17e3886e51c2aabfb9915951d51660b0b5cbedba Mon Sep 17 00:00:00 2001 From: joostverburg Date: Wed, 8 Oct 2003 18:00:36 +0000 Subject: [PATCH] location of LangDLL registry settings git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3005 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/Readme.html | 23 ++++++++++++++++------- Examples/Modern UI/MultiLanguage.nsi | 13 ++++++++----- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index d84d75b5..02648fca 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -470,7 +470,7 @@ will also help you to learn more about the Modern UI.

!insertmacro MUI_LANGUAGE "English"

The Modern UI language files load the NLF language files, so you should not use LoadLanguageFile.

-

Customize fonts

+

Customize Fonts

You can customize the fonts for a language using the following defines before inserting a language.

@@ -484,7 +484,7 @@ will also help you to learn more about the Modern UI.

The font for the title on the Welcome and Finish page.

Note: Page texts can be changed using page settings.

-

Language selection dialog

+

Language Selection Dialog

If you want the installer to display a language selection dialog (have a look at the @@ -496,11 +496,10 @@ Function .onInit FunctionEnd -

To customize the language selection dialog, use these defines before inserting the macro.

-

MUI_LANGDLL_WINDOWTITLE text
- The window title of the language selection dialog.

-

MUI_LANGDLL_INFO text
- The text to display on the language selection dialog.

+

Language Selection Dialog Settings

+
+

To remember to users preference, you can define a registry key.
+ Note: These defines should be set before inserting the instfiles page macro.

MUI_LANGDLL_REGISTRY_ROOT root
MUI_LANGDLL_REGISTRY_KEY key
MUI_LANGDLL_REGISTRY_VALUENAME value_name
@@ -516,10 +515,20 @@ Function un.onInit FunctionEnd +

+

Language Selection Dialog Interface Settings

+
+

To customize the language selection dialog interface, use these defines before inserting + the MUI_LANGDLL_DISPLAY macro.

+

MUI_LANGDLL_WINDOWTITLE text
+ The window title of the language selection dialog.

+

MUI_LANGDLL_INFO text
+ The text to display on the language selection dialog.

MUI_LANGDLL_ALWAYSSHOW
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.

+

6. Reserve files

If you are using BZIP2 (solid) compression, it's important that files which are being extracted in init- or page functions function are located diff --git a/Examples/Modern UI/MultiLanguage.nsi b/Examples/Modern UI/MultiLanguage.nsi index 799602e4..69f1a80b 100644 --- a/Examples/Modern UI/MultiLanguage.nsi +++ b/Examples/Modern UI/MultiLanguage.nsi @@ -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