Search code examples
nsis

NSIS Change page text fails


I want to change the texts in the installer pages like MUI_WELCOMEPAGE_TITLE. But it doesn't work. Can someone please give me a hint? The standard text is displayed.

!include "FileFunc.nsh"
!include "Library.nsh"
!include "UMUI.nsh"
!include "MUI2.nsh"
!include "WordFunc.nsh"

!define MUI_WELCOMEPAGE_TITLE  $(MUI_TEXT_WELCOME_INFO_TITLE_INFINGY)

Solution

  • $(xyz) is a LangString, use ${mydefine} if you used !define mydefine "Title goes here".

    You can also use a LangString:

    !define MUI_WELCOMEPAGE_TITLE  "$(MyWelcomeTitle)"
    !insertmacro MUI_PAGE_WELCOME
    !insertmacro MUI_PAGE_INSTFILES
    !insertmacro MUI_LANGUAGE English
    LangString MyWelcomeTitle ${LANG_ENGLISH} "Hello World"