comparison src/uninstal.c @ 2217:120502692d82 vim73

Improve the MS-Windows installer.
author Bram Moolenaar <bram@vim.org>
date Mon, 24 May 2010 21:34:22 +0200
parents 3fc0f57ecb91
children 573da4dac306
comparison
equal deleted inserted replaced
2216:ef150ab31dda 2217:120502692d82
352 #ifdef WIN3264 352 #ifdef WIN3264
353 if (popup_gvim_path(popup_path)) 353 if (popup_gvim_path(popup_path))
354 { 354 {
355 printf(" - the \"Edit with Vim\" entry in the popup menu\n"); 355 printf(" - the \"Edit with Vim\" entry in the popup menu\n");
356 printf(" which uses \"%s\"\n", popup_path); 356 printf(" which uses \"%s\"\n", popup_path);
357 printf("\nRemove it (y/n)? "); 357 if (interactive)
358 if (confirm()) 358 printf("\nRemove it (y/n)? ");
359 if (!interactive || confirm())
359 { 360 {
360 remove_popup(); 361 remove_popup();
361 /* Assume the "Open With" entry can be removed as well, don't 362 /* Assume the "Open With" entry can be removed as well, don't
362 * bother the user with asking him again. */ 363 * bother the user with asking him again. */
363 remove_openwith(); 364 remove_openwith();
428 { 429 {
429 printf("\nYou may now want to delete the Vim executables and runtime files.\n"); 430 printf("\nYou may now want to delete the Vim executables and runtime files.\n");
430 printf("(They are still where you unpacked them.)\n"); 431 printf("(They are still where you unpacked them.)\n");
431 } 432 }
432 433
433 rewind(stdin); 434 if (interactive)
434 printf("\nPress Enter to exit..."); 435 {
435 (void)getchar(); 436 rewind(stdin);
437 printf("\nPress Enter to exit...");
438 (void)getchar();
439 }
440 else
441 Sleep(3000);
436 442
437 return 0; 443 return 0;
438 } 444 }