Fix ForceRemoveEdge switch (#736)

This commit is contained in:
Jeffrey
2026-08-12 21:10:47 +02:00
committed by GitHub
parent dd929f8eec
commit 31feaeb6f5
3 changed files with 22 additions and 0 deletions
@@ -3,6 +3,12 @@
Forcefully uninstalls Microsoft Edge and removes its leftover shortcuts and autostart entries.
#>
function Invoke-ForceRemoveEdge {
if ($script:Params.ContainsKey("WhatIf")) {
Write-Host "[WhatIf] Forcefully uninstall Microsoft Edge" -ForegroundColor Cyan
Write-Host ""
return
}
Write-Host "> Forcefully uninstalling Microsoft Edge..."
$regView = [Microsoft.Win32.RegistryView]::Registry32