JohaViss
8th October 2010 16:02 UTC
Dynamic text on finishpage
How can I change the text on the finishpage?
When the install has finished copying the files to the installation directory, there is a command file that is executed.
That gives a result file with 2 strings
Those strings must be displayed on the finishpage as title and text.
I can read those strings, thats not the problem.
I'm struggeling for a few days now, Im really stuck.
Can I change those texts anyhow?
Using nsDialogs and MUI2
Regards
Johan
Animaether
8th October 2010 19:09 UTC
use something like..
!define MUI_FINISHPAGE_TITLE $0
!define MUI_FINISHPAGE_TEXT $1
>
..and read your strings into those two variables before the Finish page is displayed.
JohaViss
11th October 2010 09:56 UTC
That works, thank you.
I had tried it with variables, but it didn't work.
I made the mistake by setting the default like this:
"Finished"
It seems that you can't change the text later.
Regards,
Johan
Animaether
11th October 2010 12:13 UTC
You probably can, by setting it directly (SendMessage $hwnd ${WM_SETTEXT} 0 "STR:text here", where $hwnd would be $mui.FinishPage.Title and $mui.FinishPage.Text) in your MUI 'show' custom function - but the variable method is cleaner :)