Archive: Changing Default Pages


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


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.

Or simply use MiscButtonText and InstallButtonText.