Archive: MUI equivelent to "DirText"


MUI equivelent to "DirText"
Just can't find what to !define to override defaults.


Modern UI does not need to have DirText defined to show the directory selection box.

If you wand to chande the Title & Subtitle of the dir page use the following code:


!insertmacro MUI_HEADER_TEXT "Choose Data Location" "Choose the folder in which to install ${MUI_PRODUCT} - Data Files."

If you want to change all text in the directory page use the following:

!insertmacro MUI_HEADER_TEXT "Choose Data Location" "Choose the folder in which to install ${MUI_PRODUCT} - Data Files."
!insertmacro MUI_INNERDIALOG_TEXT 1041 "Data Destination Folder"
!insertmacro MUI_INNERDIALOG_TEXT 1019 "$INSTDIR\Data\"
!insertmacro MUI_INNERDIALOG_TEXT 1006 "Setup will install ${MUI_PRODUCT} - Data Files in the following folder.$\r$\n$\r$\nTo install in a different folder, click Browse and select another folder. Click Install to start the installation."

NOTE: The third line chandes the default destination and can be omited!

Vytautas

It's better to override the MUI's string because that way it won't draw them twice. Open up a MUI language file (Contrib\Modern UI\Language Files\English.nsh for example), look for the string you want to change, copy it's defined name and define a different value for it (with the same name) just before you add in the language file (!insertmacro MUI_LANGUAGE).


This look right:

instead of DirText, use:

!insertmacro MUI_LANGUAGEFILE_STRING MUI_INNERTEXT_DIRECTORY_TOP "Setup must install ${MUI_PRODUCT} into your Forgotten Battles game folder. Please browse to it now, then click Install."


Nevermind. That should be:


!define MUI_INNERTEXT_DIRECTORY_TOP "Setup must blah blah"