From: Thomas Heller Date: Fri, 2 Jul 2004 07:54:30 +0000 (+0000) Subject: Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy. X-Git-Tag: v2.3.5c1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3183e7ee43557894f1f44ea6a2a28f3aeb08aaee;p=thirdparty%2FPython%2Fcpython.git Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy. Patch from Mark Hammond. Recompiled binary. --- diff --git a/Lib/distutils/command/wininst.exe b/Lib/distutils/command/wininst.exe index eb17237ea666..b1d92b375785 100755 Binary files a/Lib/distutils/command/wininst.exe and b/Lib/distutils/command/wininst.exe differ diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index ba98aa3aaf0d..ec28f8aa8232 100644 --- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -1589,6 +1589,14 @@ InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) /* Handle a Next button click here */ hDialog = hwnd; + /* Disable the buttons while we work. Sending CANCELTOCLOSE has + the effect of disabling the cancel button, which is a) as we + do everything synchronously we can't cancel, and b) the next + step is 'finished', when it is too late to cancel anyway. + The next step being 'Finished' means we also don't need to + restore the button state back */ + PropSheet_SetWizButtons(GetParent(hwnd), 0); + SendMessage(GetParent(hwnd), PSM_CANCELTOCLOSE, 0, 0); /* Make sure the installation directory name ends in a */ /* backslash */ if (python_dir[strlen(python_dir)-1] != '\\')