mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-20 21:10:20 +08:00
Fix force remove edge prompt (#483)
This commit is contained in:
parent
1b6aa00bdd
commit
033fa1b8af
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user