change close button text before nsDialog create

This commit is contained in:
Stephen Birarda 2016-01-12 12:37:55 -08:00
parent db5935c275
commit 7ce36a69a0

View file

@ -777,6 +777,10 @@ Var LAUNCH_NOW_CHECKBOX
Var CURRENT_OFFSET
Function PostInstallOptionsPage
; Set the text on the dialog button to match finish
GetDlgItem $0 $hwndparent 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(^CloseBtn)"
nsDialogs::Create 1018
Pop $POST_INSTALL_DIALOG
@ -830,10 +834,6 @@ Function PostInstallOptionsPage
${NSD_SetState} $LAUNCH_NOW_CHECKBOX ${BST_CHECKED}
nsDialogs::Show
; Set the text on the dialog button to match finish
GetDlgItem $0 $hwndparent 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(^CloseBtn)"
FunctionEnd
Var DESKTOP_CLIENT_STATE