From 47dbd9d8506d26ba636c974555e4b8ff4a98d95b Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jan 2016 14:16:28 -0800 Subject: [PATCH] hide back and cancel buttons on finish page --- cmake/templates/NSIS.template.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 0af7b7af2c..ff499a7284 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -777,9 +777,15 @@ 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)" + ; Set the text on the dialog button to match finish, hide the back and cancel buttons + GetDlgItem $R1 $hwndparent 1 + SendMessage $R1 ${WM_SETTEXT} 0 "STR:$(^CloseBtn)" + + GetDlgItem $R2 $hwndparent 2 + ShowWindow $R2 0 + + GetDlgItem $R3 $hwndparent 3 + ShowWindow $R3 0 nsDialogs::Create 1018 Pop $POST_INSTALL_DIALOG