summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2004-07-07 07:34:40 (GMT)
committerThomas Heller <theller@ctypes.org>2004-07-07 07:34:40 (GMT)
commitad6ce46f4944d982f0a9b969481f530f48495640 (patch)
tree234b28bcf6ec0a347b08e0a7d97a9bcb2e3a241b
parentb8b20e22bc2b2f1f525769be3a70c8a9a5ca6bc4 (diff)
downloadcpython-ad6ce46f4944d982f0a9b969481f530f48495640.zip
cpython-ad6ce46f4944d982f0a9b969481f530f48495640.tar.gz
cpython-ad6ce46f4944d982f0a9b969481f530f48495640.tar.bz2
Remove the annoing and useless messagebox asking about overwriting files.
Fixes SF #984290.
-rw-r--r--PC/bdist_wininst/install.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c
index 9500557..d7bfc4f 100644
--- a/PC/bdist_wininst/install.c
+++ b/PC/bdist_wininst/install.c
@@ -145,8 +145,6 @@ char *bitmap_bytes;
/* wParam: number of this file */
/* lParam: points to pathname */
-enum { UNSPECIFIED, ALWAYS, NEVER } allow_overwrite = UNSPECIFIED;
-
static BOOL notify(int code, char *fmt, ...);
/* Note: If scheme.prefix is nonempty, it must end with a '\'! */
@@ -808,28 +806,6 @@ static BOOL SystemError(int error, char *msg)
return FALSE;
}
-static BOOL AskOverwrite(char *filename)
-{
- int result;
- again:
- if (allow_overwrite == ALWAYS)
- return TRUE;
- if (allow_overwrite == NEVER)
- return FALSE;
- result = MessageBox(hDialog,
- "Overwrite existing files?\n"
- "\n"
- "Press YES to ALWAYS overwrite existing files,\n"
- "press NO to NEVER overwrite existing files.",
- "Overwrite options",
- MB_YESNO | MB_ICONQUESTION);
- if (result == IDYES)
- allow_overwrite = ALWAYS;
- else if (result == IDNO)
- allow_overwrite = NEVER;
- goto again;
-}
-
static BOOL notify (int code, char *fmt, ...)
{
char Buffer[1024];
@@ -844,7 +820,6 @@ static BOOL notify (int code, char *fmt, ...)
switch (code) {
/* Questions */
case CAN_OVERWRITE:
- result = AskOverwrite(Buffer);
break;
/* Information notification */