mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 13:05:04 -05:00
Remove -cleanup-during-uninstall option.
It was never a documented option, and hasn't been used for anything since d0399966.
This commit is contained in:
parent
a3d14d77f5
commit
18f98bae21
@ -509,29 +509,13 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
|||||||
i++; /* skip next argument */
|
i++; /* skip next argument */
|
||||||
} else if (ret == 1) {
|
} else if (ret == 1) {
|
||||||
continue; /* nothing further needs doing */
|
continue; /* nothing further needs doing */
|
||||||
} else if (!strcmp(p, "-cleanup") ||
|
} else if (!strcmp(p, "-cleanup")) {
|
||||||
!strcmp(p, "-cleanup-during-uninstall")) {
|
|
||||||
/*
|
/*
|
||||||
* `putty -cleanup'. Remove all registry
|
* `putty -cleanup'. Remove all registry
|
||||||
* entries associated with PuTTY, and also find
|
* entries associated with PuTTY, and also find
|
||||||
* and delete the random seed file.
|
* and delete the random seed file.
|
||||||
*/
|
*/
|
||||||
char *s1, *s2;
|
char *s1, *s2;
|
||||||
/* Are we being invoked from an uninstaller? */
|
|
||||||
if (!strcmp(p, "-cleanup-during-uninstall")) {
|
|
||||||
s1 = dupprintf("Remove saved sessions and random seed file?\n"
|
|
||||||
"\n"
|
|
||||||
"If you hit Yes, ALL Registry entries associated\n"
|
|
||||||
"with %s will be removed, as well as the\n"
|
|
||||||
"random seed file. THIS PROCESS WILL\n"
|
|
||||||
"DESTROY YOUR SAVED SESSIONS.\n"
|
|
||||||
"(This only affects the currently logged-in user.)\n"
|
|
||||||
"\n"
|
|
||||||
"If you hit No, uninstallation will proceed, but\n"
|
|
||||||
"saved sessions etc will be left on the machine.",
|
|
||||||
appname);
|
|
||||||
s2 = dupprintf("%s Uninstallation", appname);
|
|
||||||
} else {
|
|
||||||
s1 = dupprintf("This procedure will remove ALL Registry entries\n"
|
s1 = dupprintf("This procedure will remove ALL Registry entries\n"
|
||||||
"associated with %s, and will also remove\n"
|
"associated with %s, and will also remove\n"
|
||||||
"the random seed file. (This only affects the\n"
|
"the random seed file. (This only affects the\n"
|
||||||
@ -541,7 +525,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
|||||||
"Are you really sure you want to continue?",
|
"Are you really sure you want to continue?",
|
||||||
appname);
|
appname);
|
||||||
s2 = dupprintf("%s Warning", appname);
|
s2 = dupprintf("%s Warning", appname);
|
||||||
}
|
|
||||||
if (message_box(s1, s2,
|
if (message_box(s1, s2,
|
||||||
MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2,
|
MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2,
|
||||||
HELPCTXID(option_cleanup)) == IDYES) {
|
HELPCTXID(option_cleanup)) == IDYES) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user