From 7ce36a69a0f05b68eec452ac6315dbb687eaaa5c Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jan 2016 12:37:55 -0800 Subject: [PATCH] change close button text before nsDialog create --- cmake/templates/NSIS.template.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 4709ec3bed..0af7b7af2c 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -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