mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2025-12-07 09:36:10 -08:00
Disable before enabling, and default to BCDEdit
This commit is contained in:
10
src/Setup.cs
10
src/Setup.cs
@@ -807,7 +807,7 @@ public class Setup {
|
|||||||
WriteLine(" I = install");
|
WriteLine(" I = install");
|
||||||
WriteLine(" - creates a new EFI boot entry for HackBGRT");
|
WriteLine(" - creates a new EFI boot entry for HackBGRT");
|
||||||
WriteLine(" J = install (alternative)");
|
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(" - try this if the first option doesn't work");
|
||||||
WriteLine(" O = install (legacy)");
|
WriteLine(" O = install (legacy)");
|
||||||
WriteLine(" - overwrites the MS boot loader; gets removed by Windows updates");
|
WriteLine(" - overwrites the MS boot loader; gets removed by Windows updates");
|
||||||
@@ -827,15 +827,15 @@ public class Setup {
|
|||||||
var k = Console.ReadKey().Key;
|
var k = Console.ReadKey().Key;
|
||||||
Log($"User input: {k}");
|
Log($"User input: {k}");
|
||||||
WriteLine();
|
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();
|
Configure();
|
||||||
}
|
}
|
||||||
if (k == ConsoleKey.I) {
|
if (k == ConsoleKey.I) {
|
||||||
RunPrivilegedActions(new string[] { "install", "enable-entry" });
|
RunPrivilegedActions(new string[] { "install", "disable", "enable-bcdedit" });
|
||||||
} else if (k == ConsoleKey.J) {
|
} else if (k == ConsoleKey.J) {
|
||||||
RunPrivilegedActions(new string[] { "install", "enable-bcdedit" });
|
RunPrivilegedActions(new string[] { "install", "disable", "enable-entry" });
|
||||||
} else if (k == ConsoleKey.O) {
|
} else if (k == ConsoleKey.O) {
|
||||||
RunPrivilegedActions(new string[] { "install", "enable-overwrite" });
|
RunPrivilegedActions(new string[] { "install", "disable", "enable-overwrite" });
|
||||||
} else if (k == ConsoleKey.F) {
|
} else if (k == ConsoleKey.F) {
|
||||||
RunPrivilegedActions(new string[] { "install" });
|
RunPrivilegedActions(new string[] { "install" });
|
||||||
} else if (k == ConsoleKey.D) {
|
} else if (k == ConsoleKey.D) {
|
||||||
|
|||||||
Reference in New Issue
Block a user