Archive: Welcome Page Text


Welcome Page Text
Hi all,

first of all thanks to all NSIS developers! This installer is the most functional and feature rich installer I know.

I don't have a problem, but a question about the welcome page text. Is there a simple way to change the text during runtime?
The thing I like to do is to append a small sentence to the defined text block during the installation.

Regards,
Franz


Simply use a variable instead of the text and modify its contents before the welcome page is displayed.


Do you mean this way:
Var WelcomeUser
!define MUI_WELCOMEPAGE_TEXT $(WelcomeUser)
!define MY_WELCOMEPAGE_TEXT "blahblah"

Function ShowWelcome
StrCpy $WelcomeUser "${MY_WELCOMEPAGE_TEXT} blah."
FunctionEnd

Now I get this one:
1 warning:
LangString "WelcomeUser" is not set in language table of language English

How to set a variable to a language?


!define MUI_WELCOMEPAGE_TEXT $WelcomeUser

Stu


Ok. Found out how to do it:

Var WelcomeUser
!define MUI_WELCOMEPAGE_TEXT $WelcomeUser
!define MY_WELCOMEPAGE_TEXT "blahblah"

Function .onInit
StrCpy $WelcomeUser "${MY_WELCOMEPAGE_TEXT} blah."
FunctionEnd


I love NSIS. Things are getting done so easy and you have full control of what happens. Moved IS stuff to the bin...;-).