0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

Improve the MS-Windows installer.

This commit is contained in:
Bram Moolenaar
2010-05-24 21:34:22 +02:00
parent e66194a54e
commit 442b4225d3
16 changed files with 146 additions and 80 deletions

View File

@@ -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;
}