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