Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32b8f80

Browse files
author
Thomas Heller
committed
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.
1 parent 214b1c3 commit 32b8f80

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

PC/bdist_wininst/install.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,14 @@ InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
17081708
hDialog = hwnd;
17091709
success = TRUE;
17101710

1711+
/* Disable the buttons while we work. Sending CANCELTOCLOSE has
1712+
the effect of disabling the cancel button, which is a) as we
1713+
do everything synchronously we can't cancel, and b) the next
1714+
step is 'finished', when it is too late to cancel anyway.
1715+
The next step being 'Finished' means we also don't need to
1716+
restore the button state back */
1717+
PropSheet_SetWizButtons(GetParent(hwnd), 0);
1718+
SendMessage(GetParent(hwnd), PSM_CANCELTOCLOSE, 0, 0);
17111719
/* Make sure the installation directory name ends in a */
17121720
/* backslash */
17131721
if (python_dir[strlen(python_dir)-1] != '\\')

0 commit comments

Comments
 (0)