summaryrefslogtreecommitdiff
path: root/PC/bdist_wininst
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2004-07-02 08:02:40 +0000
committerThomas Heller <theller@ctypes.org>2004-07-02 08:02:40 +0000
commita59ebafe2d91cf3540232ed053d02e3bac36c0fc (patch)
tree3daf7e02e0a4698ec0af8b6d6c2c2edc7fa20105 /PC/bdist_wininst
parentfaaf73902c41d60df01ecea44c75e21de9ea694b (diff)
downloadcpython-a59ebafe2d91cf3540232ed053d02e3bac36c0fc.tar.gz
Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.
Patch from Mark Hammond. Recompiled binary. Already packported to the 2.3 branch.
Diffstat (limited to 'PC/bdist_wininst')
-rw-r--r--PC/bdist_wininst/install.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c
index a715528f9a..7ba05aaa89 100644
--- a/PC/bdist_wininst/install.c
+++ b/PC/bdist_wininst/install.c
@@ -1708,6 +1708,14 @@ InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
hDialog = hwnd;
success = TRUE;
+ /* 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] != '\\')