update edge uninstall (#4666)

* yep

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json
This commit is contained in:
Gabi
2026-06-29 18:33:31 +03:00
committed by GitHub
parent 8b6098b36a
commit 5003f14e0a
2 changed files with 13 additions and 11 deletions

View File

@@ -1,8 +0,0 @@
function Invoke-WinUtilRemoveEdge {
New-Item -Path "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force
$Path = Resolve-Path -Path "$Env:ProgramFiles (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" | Select-Object -Last 1
Start-Process -FilePath $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' -Wait
Write-Host "Microsoft Edge was removed" -ForegroundColor Green
}