Skip to content
⌘ NSIS Forum Archive

How tp define multilang !define MUI_TEXT_WELCOME_INFO_TITLE

7 posts

Jjackfrost#

How tp define multilang !define MUI_TEXT_WELCOME_INFO_TITLE

I've tryied this, and it doesn`t work:

!define MUI_TEXT_WELCOME_INFO_TITLE "$(WELCOME_TITLE)"

!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "English"

LangString WELCOME_TITLE ${LANG_FRENCH} "!!!!!! La Professionale"
LangString WELCOME_TITLE ${LANG_ENGLISH} "!!!!!!! Installing $(^NameDA)"

Please help!
Anders#
https://nsis.sourceforge.io/Docs/Mod...02/Readme.html lists the valid defines, has not changed much in the last 10 years.
Jjackfrost#
Thanks for reply, but
!define MUI_TEXT_WELCOME_INFO_TITLE "!it works" <= substr is not found in https://nsis.sourceforge.io/Docs/Mod...02/Readme.html
!define MUI_WELCOMEPAGE_TITLE "!it doesnt work"<= found, but wrong.
Ten years of wrong docs?
Anders#
MUI_TEXT_WELCOME_INFO_TITLE is used internally but you should not really use that.

This works fine for me and is documented:
!define MUI_WELCOMEPAGE_TITLE "Documented and works $(WELCOME_TITLE)"
!include MUI2.nsh
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
LangString WELCOME_TITLE ${LANG_ENGLISH} "!!!!!!! Installing $(^NameDA)"
LangString WELCOME_TITLE ${LANG_FRENCH} "!!!!!! La Professionale"
Section
SectionEnd 
Jjackfrost#
Originally Posted by Anders View Post
MUI_TEXT_WELCOME_INFO_TITLE is used internally but you should not really use that.

This works fine for me and is documented:
!define MUI_WELCOMEPAGE_TITLE "Documented and works $(WELCOME_TITLE)"
!include MUI2.nsh
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
LangString WELCOME_TITLE ${LANG_ENGLISH} "!!!!!!! Installing $(^NameDA)"
LangString WELCOME_TITLE ${LANG_FRENCH} "!!!!!! La Professionale"
Section
SectionEnd 
Thanks a lot !!!
Your code is really works! I've understand that !define MUI_WELCOMEPAGE_TITLE "Documented and works $(WELCOME_TITLE)" must be before
!include MUI2.nsh