Skip to content

Commit

Permalink
Disable before enabling, and default to BCDEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
Metabolix committed Dec 31, 2023
1 parent a44b929 commit ea70f3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Setup.cs
Expand Up @@ -807,7 +807,7 @@ public enum BootLoaderType {
WriteLine(" I = install");
WriteLine(" - creates a new EFI boot entry for HackBGRT");
WriteLine(" J = install (alternative)");
WriteLine(" - creates a new EFI boot entry with an alternative method (BCDEdit)");
WriteLine(" - creates a new EFI boot entry with an alternative method");
WriteLine(" - try this if the first option doesn't work");
WriteLine(" O = install (legacy)");
WriteLine(" - overwrites the MS boot loader; gets removed by Windows updates");
Expand All @@ -827,15 +827,15 @@ public enum BootLoaderType {
var k = Console.ReadKey().Key;
Log($"User input: {k}");
WriteLine();
if (k == ConsoleKey.I || k == ConsoleKey.O || k == ConsoleKey.F) {
if (k == ConsoleKey.I || k == ConsoleKey.J || k == ConsoleKey.O || k == ConsoleKey.F) {
Configure();
}
if (k == ConsoleKey.I) {
RunPrivilegedActions(new string[] { "install", "enable-entry" });
RunPrivilegedActions(new string[] { "install", "disable", "enable-bcdedit" });
} else if (k == ConsoleKey.J) {
RunPrivilegedActions(new string[] { "install", "enable-bcdedit" });
RunPrivilegedActions(new string[] { "install", "disable", "enable-entry" });
} else if (k == ConsoleKey.O) {
RunPrivilegedActions(new string[] { "install", "enable-overwrite" });
RunPrivilegedActions(new string[] { "install", "disable", "enable-overwrite" });
} else if (k == ConsoleKey.F) {
RunPrivilegedActions(new string[] { "install" });
} else if (k == ConsoleKey.D) {
Expand Down

0 comments on commit ea70f3c

Please sign in to comment.