SuperistJoe
14th December 2005 20:43 UTC
Changing Default Pages
The default next button for the Directory page is either Next or Install depending on if there are more sections after it. I was wondering if there was a way to control that. With custom pages I can just set that value, but I'm not sure how to set the value with system generated pages.
Thanks
Joe
Jnuw
14th December 2005 21:53 UTC
Hello.
Add a MUI_PAGE_CUSTOMFUNCTION_SHOW define right before the Directory page macro, like this:
!define MUI_PAGE_CUSTOMFUNCTION_SHOW "DirectoryShow"
!insertmacro MUI_PAGE_DIRECTORY
Then add this function, and replace "ButtonTextHere" with what ever you want the button to say:
Function DirectoryShow
GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:ButtonTextHere"
FunctionEnd
Good luck.
kichik
15th December 2005 18:05 UTC
Or simply use MiscButtonText and InstallButtonText.