Disable old version before copying files

Apparently some people still have the obsolete v1.5.1 installed
and manage to break things by copying v2.x config in place.
This commit is contained in:
Lauri Kenttä
2024-04-11 11:45:28 +03:00
parent da16365508
commit 697c57355b

View File

@@ -863,13 +863,13 @@ public class Setup {
Configure();
}
if (k == ConsoleKey.I) {
RunPrivilegedActions(new string[] { "install", "disable", "enable-bcdedit" });
RunPrivilegedActions(new string[] { "disable", "install", "enable-bcdedit" });
} else if (k == ConsoleKey.J) {
RunPrivilegedActions(new string[] { "install", "disable", "enable-entry" });
RunPrivilegedActions(new string[] { "disable", "install", "enable-entry" });
} else if (k == ConsoleKey.O) {
RunPrivilegedActions(new string[] { "install", "disable", "enable-overwrite" });
RunPrivilegedActions(new string[] { "disable", "install", "enable-overwrite" });
} else if (k == ConsoleKey.F) {
RunPrivilegedActions(new string[] { "install" });
RunPrivilegedActions(new string[] { "disable-overwrite", "install" });
} else if (k == ConsoleKey.D) {
RunPrivilegedActions(new string[] { "disable" });
} else if (k == ConsoleKey.R) {