Archive: WELCOMEFINISH setting text


WELCOMEFINISH setting text
Hi All,

This feels like a really silly question, but it's just not doing what I expected!

I want to change the default text for a MUI_(UN)PAGE_WELCOME, I wanted to do this with from the MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT, my custom function is called, I expected to be able to !define MUI_WELCOMEPAGE_TEXT with my own text but it's using the default text instead.

What should I be doing?

Thanks


You have to use the define again before MUI_UNPAGE_WELCOME

Stu


Hmmmm,

Ok, so I've:

!define MUI_WELCOMEPAGE_TEXT "$MyWelcomeText"
!define MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT WelcomeInit
!insertmacro MUI_PAGE_WELCOME

And in WelcomeInit I set $MyWelcomeText, this works! (Thanks ;) )

Given I want to set the text at runtime, is there a "nicer" way of doing this, not using a global variable?

Thanks for your help :)


As I said,


!define MUI_WELCOMEPAGE_TEXT "My installer text"
!insertmacro MUI_PAGE_WELCOME

!define MUI_WELCOMEPAGE_TEXT "My uninstaller text"
!insertmacro MUI_UNPAGE_WELCOME

Stu