mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-02-20 09:26:25 +00:00
Fix force remove edge prompt (#483)
This commit is contained in:
@@ -508,7 +508,7 @@ function RemoveApps {
|
||||
}
|
||||
else {
|
||||
# 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")) {
|
||||
Write-ToConsole "Unable to uninstall Microsoft Edge via WinGet" -ForegroundColor Red
|
||||
|
||||
Reference in New Issue
Block a user