mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2025-12-06 17:15:42 -08:00
Improve output and README for BCDEdit errors
This commit is contained in:
@@ -85,6 +85,10 @@ If you copy an image file to ESP manually, note that the image must be a 24-bit
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### BCDEdit failed
|
||||
|
||||
You can first try the other installation option in the menu. If it doesn't work either, your computer might have a problem. Open Command Prompt and figure out why `bcdedit /enum firmware` fails. In some cases, disabling antivirus, checking the hard disk or searching for 'how to fix 0x800703EE' may help.
|
||||
|
||||
### Verification failed, Security violation
|
||||
|
||||
This is part of the setup on first boot. Make sure you have read and understood [shim.md](shim.md).
|
||||
|
||||
@@ -455,12 +455,12 @@ public class Setup {
|
||||
}
|
||||
var bcdeditEnum = Execute("bcdedit", "/enum firmware");
|
||||
if (bcdeditEnum.ExitCode != 0) {
|
||||
WriteLine("BCDEdit is not working. Fix it or try another method.");
|
||||
if (bcdeditEnum.Output != null) {
|
||||
var lastLine = bcdeditEnum.Output.Split("\n".ToCharArray()).Last();
|
||||
WriteLine($"BCDEdit output: {lastLine}");
|
||||
WriteLine("Disable antivirus, check your hard disk, or search 'how to fix 0x800703EE'.");
|
||||
var lines = bcdeditEnum.Output.Split("\n".ToCharArray());
|
||||
var lastLine = lines.Select(s => s != "").Last();
|
||||
WriteLine($"BCDEdit failed with: {lastLine}");
|
||||
}
|
||||
WriteLine("BCDEdit failed. See README for further information.");
|
||||
throw new SetupException("Failed to enable HackBGRT with BCDEdit!");
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user