|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 3
|
MUI_PAGE_WELCOME - how to change labels?
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? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Weird... this works as it's supposed to do:
EDIT: InstallButtonText should be replaced with MiscButtonText and must be initialized in function .onInit code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 3
|
Great
Thanks Red Wine
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2008
Posts: 3
|
Hmmm....
I use UltraModernUI - how to improve my code for this UI? It's still beta, but my Boss doesn't like MUI :/ |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|