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.
This commit is contained in:
Thomas Heller 2004-07-02 08:02:40 +00:00
parent 214b1c3aae
commit 32b8f8052a
3 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -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] != '\\')