mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Now prompts for forceful MS Edge uninstall if Winget fails, regardless of exit code
This commit is contained in:
@@ -353,7 +353,7 @@ function RemoveApps {
|
|||||||
# Uninstall app via winget
|
# Uninstall app via winget
|
||||||
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
|
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
|
||||||
|
|
||||||
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "93")) {
|
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) {
|
||||||
Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red
|
Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user