Dynamically changing the text on the finish screen?
As the title says, is there an easy way to dynamically change the text on the finish screen? I simply want to do a little customization of it, but dynamically
Archive: Dynamically changing the text on the finish screen?
Dynamically changing the text on the finish screen?
As the title says, is there an easy way to dynamically change the text on the finish screen? I simply want to do a little customization of it, but dynamically
Which text do you want to change?
Vytautas
I simply want to say something along the lines of "This installation requires the Microsoft.Net Framework. Please install the .Net Framework, and then attempt to install this program again"
I guess it would be nice if I could change the title text as well, but it is not neccissary.
Here is an Example:
define DOT_NET_OK $R0
>!define MUI_CUSTOMFUNCTION_FINISH_SHOW OnShowFinish
>!define FINISH_ERROR_TITLE "Error installing ${MUI_PRODUCT} ${MUI_VERSION}"
>!define FINISH_ERROR_DESC "This installation requires the \
Microsoft.Net Framework. Please install the .Net Framework, and then \
attempt to install this program again."
>...
>Section "-FirstSection" #This section is hidden
>... # Detect in if DotNet is installed if not call abort and set ${DOT_NET_OK} to "0"
>SectionEnd
>...
Function OnShowFinish
StrCmp${DOT_NET_OK} "1" DOT_NET_INSTALLED
GetDlgItem${MUI_TEMP2} ${MUI_TEMP1} 1201
SendMessage${MUI_TEMP2} ${WM_SETTEXT} 0 "STR:${FINISH_ERROR_TITLE}"
GetDlgItem ${MUI_TEMP2} ${MUI_TEMP1} 1202
SendMessage${MUI_TEMP2} ${WM_SETTEXT} 0 "STR:${FINISH_ERROR_DESC}"
>DOT_NET_INSTALLED:
>FunctionEnd
>
good luck,thx, looks like it is working!