summaryrefslogtreecommitdiff
path: root/src/uninstal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-24 21:34:22 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-24 21:34:22 +0200
commit442b4225d3310599a8bc9107dc3f7b4153a286c4 (patch)
tree518b9298185272fad43e5afbc8a7cde21dc867e8 /src/uninstal.c
parente66194a54e0303568e7db1cb8772e2709afd864c (diff)
downloadvim-git-442b4225d3310599a8bc9107dc3f7b4153a286c4.tar.gz
Improve the MS-Windows installer.
Diffstat (limited to 'src/uninstal.c')
-rw-r--r--src/uninstal.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/uninstal.c b/src/uninstal.c
index 23c246b30..04481ee67 100644
--- a/src/uninstal.c
+++ b/src/uninstal.c
@@ -354,8 +354,9 @@ main(int argc, char *argv[])
{
printf(" - the \"Edit with Vim\" entry in the popup menu\n");
printf(" which uses \"%s\"\n", popup_path);
- printf("\nRemove it (y/n)? ");
- if (confirm())
+ if (interactive)
+ printf("\nRemove it (y/n)? ");
+ if (!interactive || confirm())
{
remove_popup();
/* Assume the "Open With" entry can be removed as well, don't
@@ -430,9 +431,14 @@ main(int argc, char *argv[])
printf("(They are still where you unpacked them.)\n");
}
- rewind(stdin);
- printf("\nPress Enter to exit...");
- (void)getchar();
+ if (interactive)
+ {
+ rewind(stdin);
+ printf("\nPress Enter to exit...");
+ (void)getchar();
+ }
+ else
+ Sleep(3000);
return 0;
}