From 0f2d1dceef6e01b1bef969b8f86c4fda2b2f49ad Mon Sep 17 00:00:00 2001
From: joostverburg
!define MUI_STARTMENUPAGE_NODISABLE ;No value !define MUI_FINISHPAGE_RUN "$INSTDIR\Application.exe" ;Value -!define MUI_INSTALLCOLORS "FFFFFF 000000" ;Multiple parameters -!define MUI_LICENSEPAGE_TEXT "$\"Text$\" $\"Buttontext$\"" ;Multiple texts +!define MUI_INSTALLCOLORS "FFFFFF 000000" ;Multiple settings +!define MUI_LICENSEPAGE_TEXT '"Text"' ;Text +!define MUI_LICENSEPAGE_TEXT '"Text" "Buttontext"' ;Multiple texts
If you want a certain value (i.e. a text) to be language-specific, set a language string and define $(LANGUAGESTRINGNAME) as value.
-When adding a double quote (") to a Modern UI string, you should always escape it ($\"), - because the Modern UI macros use " to separate parameters.
+When adding " to a Modern UI string, you should always escape it ($\"), + because the Modern UI macros use " to separate parameters. If you want to set texts like above you have to + escape both " and ' (using $\" and $\').
1. Include the header file
!include "MUI.nsh"
MUI.nsh is in the Include directory, so you don't have @@ -223,7 +225,7 @@ will also help you to learn more about the Modern UI.
License Page Settings
MUI_LICENSEPAGE_TEXT text [buttontext]
- Texts to display on the inner dialog of the license page. Put quotes around the different texts ($\").
MUI_LICENSEPAGE_TEXT_TOP text
Text to display on the top of the inner dialog of the license page.
MUI_LICENSEPAGE_CHECKBOX
@@ -235,12 +237,12 @@ will also help you to learn more about the Modern UI.
Components Page Settings
MUI_COMPONENTSPAGE_TEXT text [subtext] [subtext2]
- Texts to display on the inner dialog of the components page. Put quotes around the different texts ($\").
Directory Page Settings
MUI_DIRECTORYPAGE_TEXT text [subtext]
- Texts to display on the inner dialog of the directory page. Put quotes around the different texts ($\").
MUI_DIRECTORYPAGE_VARIABLE variable
Variable in which to store the selected folder
Default: $INSTDIR
Have a look at the language files for a complete list of all the string names.
+You only have to escape " (using $\").
Note: When using different product name (MUI_PRODUCT) for different languges, !undef MUI_PRODUCT after inserting a language file (or use a language string).