Old 28th May 2003, 01:21   #1
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
MUI equivelent to "DirText"

Just can't find what to !define to override defaults.
Tolwyn is offline   Reply With Quote
Old 28th May 2003, 04:34   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
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:
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:
code:

!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
Vytautas is offline   Reply With Quote
Old 28th May 2003, 13:16   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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).

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th May 2003, 16:42   #4
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
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."
Tolwyn is offline   Reply With Quote
Old 28th May 2003, 16:57   #5
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
Nevermind. That should be:
code:

!define MUI_INNERTEXT_DIRECTORY_TOP "Setup must blah blah"

Tolwyn is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump