]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.
authorThomas Heller <theller@ctypes.org>
Fri, 2 Jul 2004 07:54:30 +0000 (07:54 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 2 Jul 2004 07:54:30 +0000 (07:54 +0000)
Patch from Mark Hammond.
Recompiled binary.

Lib/distutils/command/wininst.exe
PC/bdist_wininst/install.c

index eb17237ea666f5d98687ff1fba69c997229afb73..b1d92b375785d56d24915bfc803283686b1ccf0f 100755 (executable)
Binary files a/Lib/distutils/command/wininst.exe and b/Lib/distutils/command/wininst.exe differ
index ba98aa3aaf0d6f20acf12a7cdd75c22279336e4e..ec28f8aa8232cda1c102d5e124b762aa5d9e0ee5 100644 (file)
@@ -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] != '\\')