From ea70f3ce795526d2b7bfb4aa0b3ed6e227f73401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20Kentt=C3=A4?= Date: Sun, 31 Dec 2023 18:29:33 +0200 Subject: [PATCH] Disable before enabling, and default to BCDEdit --- src/Setup.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Setup.cs b/src/Setup.cs index d1da748..7fcaa76 100644 --- a/src/Setup.cs +++ b/src/Setup.cs @@ -807,7 +807,7 @@ public class Setup { 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"); @@ -827,15 +827,15 @@ public class Setup { 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) {