PDA

View Full Version : MUI custom texts


UnregisteredSp
16th February 2006, 18:38
Please look at the script in the attachment. I want to show my own text on the pages and in the headers. Butt.. the installator doesn't show it! Can anyone help me, plz?

glory_man
17th February 2006, 09:52
Instead standard defines (like MUI_TEXT_WELCOME_INFO_TITLE, MUI_TEXT_INSTALLING_TITLE etc.) you need to define your own langstrings. And change "Interface Configuration" (see MUI doc). For example:

!define MUI_WELCOMEPAGE_TITLE $(welcome_title)
...
LangString welcome_title ${LANG_CZECH} "V***237;tejte"
LangString welcome_title ${LANG_ENGLISH} "Welcome"
...

UnSpule
17th February 2006, 17:55
Thank you, but I've tried it alredy. Compiler says:


!define: "MUI_TEXT_WELCOME_INFO_TITLE" already defined!
!include: error in script: "D:\Program Files\NSIS\Contrib\Modern UI\Language files\Czech.nsh" on line 13
Error in macro MUI_LANGUAGE on macroline 5
Error in script "D:\Documents\O\NSIS\GlobeOnline.nsi" on line 52 -- aborting creation process


Please help...

Originally posted by glory_man
Instead standard defines (like MUI_TEXT_WELCOME_INFO_TITLE, ...

UnSpule
17th February 2006, 18:49
Aha! I need to change the Interface Settings :D But I don't know how :( I'm a 12-years old Czech beginner, so I don't understand everything in the documentation...

kichik
19th February 2006, 18:54
You should not use MUI_TEXT_WELCOME_INFO_TITLE. You should use MUI_WELCOMEPAGE_TITLE. See the MUI readme (http://nsis.sourceforge.net/Docs/Modern%20UI/Readme.html) for more information about available defines.

UnregistredSp
22nd March 2006, 15:09
I use MUI_WELCOMEPAGE_TITLE. But it still doesn't work. Compiler still says !define: "MUI_TEXT_WELCOME_INFO_TITLE" already defined!. I don't understand it...

kichik
23rd March 2006, 17:26
Either you have a corrupted language file which doesn't use MUI_LANGUAGEFILE_END, or you still have MUI_TEXT_WELCOME_INFO_TITLE defined in your script.