green2000
30th June 2008, 18:52
Hello!
How to change labels for text/title etc on welcome page?
My installer has two states: installer or actualizer. For each i must change labels for:
MUI_WELCOMEPAGE_TITLE
MUI_WELCOMEPAGE_TEXT
InstallButtonText
But when i use this code i got empty strings:
Var install_button_text
Var welcome_title
Var welcome_text
...
!define MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePagePre
!define MUI_WELCOMEPAGE_TITLE '$welcome_title'
!define MUI_WELCOMEPAGE_TEXT '$welcome_text'
InstallButtonText $install_button_text
!insertmacro MUI_PAGE_WELCOME
...
Function WelcomePagePre
strcpy $install_mode '0' ; test value
${if} $install_mode == '0'
strcpy $install_button_text "Actualize"
strcpy $welcome_title "Welcome title for actualization"
strcpy $welcome_text "Welcome text for actualization"
${else}
strcpy $install_button_text "Install"
strcpy $welcome_title "Welcome title for installation"
strcpy $welcome_text "Welcome text for installation"
${endif}
MessageBox MB_OK "$welcome_title$\n$welcome_text"
FunctionEnd
How to change these labels?
How to change labels for text/title etc on welcome page?
My installer has two states: installer or actualizer. For each i must change labels for:
MUI_WELCOMEPAGE_TITLE
MUI_WELCOMEPAGE_TEXT
InstallButtonText
But when i use this code i got empty strings:
Var install_button_text
Var welcome_title
Var welcome_text
...
!define MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePagePre
!define MUI_WELCOMEPAGE_TITLE '$welcome_title'
!define MUI_WELCOMEPAGE_TEXT '$welcome_text'
InstallButtonText $install_button_text
!insertmacro MUI_PAGE_WELCOME
...
Function WelcomePagePre
strcpy $install_mode '0' ; test value
${if} $install_mode == '0'
strcpy $install_button_text "Actualize"
strcpy $welcome_title "Welcome title for actualization"
strcpy $welcome_text "Welcome text for actualization"
${else}
strcpy $install_button_text "Install"
strcpy $welcome_title "Welcome title for installation"
strcpy $welcome_text "Welcome text for installation"
${endif}
MessageBox MB_OK "$welcome_title$\n$welcome_text"
FunctionEnd
How to change these labels?