2 Commits

Author SHA1 Message Date
Lauri Kenttä
d40ce9f6c5 Make batch example the same as option I 2025-07-29 11:24:47 +03:00
Lauri Kenttä
447ff30f61 Fix getting last line from BCDEdit output 2025-07-29 11:14:37 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ The *shim* boot loader is maintained by Red Hat, Inc, and the included signed co
* `arch=...` force architecture.
* `esp=...` force EFI System Partition path.
* `dry-run` skip actual changes.
* For example, run `setup.exe batch install allow-secure-boot enable-overwrite` to copy files and overwrite the MS boot loader regardless of Secure Boot status.
* For example, `setup.exe batch disable install enable-bcdedit` would disable any previous installation, then install the files and create the EFI boot entry with `bcdedit`.
### Multi-boot configurations

View File

@@ -457,7 +457,7 @@ public class Setup {
if (bcdeditEnum.ExitCode != 0) {
if (bcdeditEnum.Output != null) {
var lines = bcdeditEnum.Output.Split("\n".ToCharArray());
var lastLine = lines.Select(s => s != "").Last();
var lastLine = lines.Where(s => s != "").Last();
WriteLine($"BCDEdit failed with: {lastLine}");
}
WriteLine("BCDEdit failed. See README for further information.");