franz.reitner
8th February 2010 08:26 UTC
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
kichik
8th February 2010 09:31 UTC
Simply use a variable instead of the text and modify its contents before the welcome page is displayed.
franz.reitner
8th February 2010 10:02 UTC
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?
Afrow UK
8th February 2010 11:09 UTC
!define MUI_WELCOMEPAGE_TEXT $WelcomeUser
Stu
franz.reitner
8th February 2010 11:11 UTC
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
franz.reitner
8th February 2010 12:35 UTC
I love NSIS. Things are getting done so easy and you have full control of what happens. Moved IS stuff to the bin...;-).