Skip to content

Commit 1896965

Browse files
committed
[PE Helper] Add BCD entry deletion for BIOS
1 parent 5422ecc commit 1896965

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Helpers/extps1/PE_Helper/PE_Helper.ps1

+8
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,14 @@ function New-BootFiles
14991499
diskpart /s "X:\files\diskpart\dp_bootassign.dp" | Out-Host
15001500
}
15011501
}
1502+
1503+
if (Test-Path -Path "X:\HotInstall\BcdEntry" -PathType Leaf) {
1504+
Write-Host "Deleting BCD entry..."
1505+
$entryGuid = Get-Content -Path "X:\HotInstall\BcdEntry"
1506+
if ($entryGuid -ne "") {
1507+
bcdedit /delete $entryGuid | Out-Host
1508+
}
1509+
}
15021510
}
15031511
bootsect /nt60 W:
15041512
bootsect /nt60 W: /mbr

0 commit comments

Comments
 (0)