Fix force remove edge prompt (#483)

This commit is contained in:
Jeffrey
2026-02-19 22:26:17 +01:00
committed by GitHub
parent 1b6aa00bdd
commit 033fa1b8af

View File

@@ -508,7 +508,7 @@ function RemoveApps {
} }
else { else {
# Uninstall app via WinGet # Uninstall app via WinGet
winget uninstall --accept-source-agreements --disable-interactivity --id $app $wingetOutput = winget uninstall --accept-source-agreements --disable-interactivity --id $app
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) { If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) {
Write-ToConsole "Unable to uninstall Microsoft Edge via WinGet" -ForegroundColor Red Write-ToConsole "Unable to uninstall Microsoft Edge via WinGet" -ForegroundColor Red