diff options
author | Thomas Heller <theller@ctypes.org> | 2004-07-02 08:02:40 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2004-07-02 08:02:40 (GMT) |
commit | 32b8f8052a0cf62fe8f9f3dbc539a0f1b3065896 (patch) | |
tree | 387542ab2cd045549e20894ee7b52e3553a88b29 | |
parent | 214b1c3aaea3e83302df9ea37a37b3c7548b92b1 (diff) | |
download | cpython-32b8f8052a0cf62fe8f9f3dbc539a0f1b3065896.zip cpython-32b8f8052a0cf62fe8f9f3dbc539a0f1b3065896.tar.gz cpython-32b8f8052a0cf62fe8f9f3dbc539a0f1b3065896.tar.bz2 |
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.
-rw-r--r-- | Lib/distutils/command/wininst-6.exe | bin | 61440 -> 61440 bytes | |||
-rw-r--r-- | Lib/distutils/command/wininst-7.1.exe | bin | 61440 -> 61440 bytes | |||
-rw-r--r-- | PC/bdist_wininst/install.c | 8 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Lib/distutils/command/wininst-6.exe b/Lib/distutils/command/wininst-6.exe Binary files differindex 8ab173b..efa3bc4 100644 --- a/Lib/distutils/command/wininst-6.exe +++ b/Lib/distutils/command/wininst-6.exe diff --git a/Lib/distutils/command/wininst-7.1.exe b/Lib/distutils/command/wininst-7.1.exe Binary files differindex 858f6f2..7be9396 100644 --- a/Lib/distutils/command/wininst-7.1.exe +++ b/Lib/distutils/command/wininst-7.1.exe diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index a715528..7ba05aa 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] != '\\') |