2026-02-10 19:49:36 +00:00
---
2026-04-17 09:04:35 -05:00
title : "Microsoft Edge - Remove"
2026-02-10 19:49:36 +00:00
description : ""
---
2026-02-18 12:37:09 -06:00
2026-06-26 19:34:10 -04:00
```json {filename="config/tweaks.json",linenos=inline,linenostart=587}
2026-01-27 21:11:30 +02:00
"WPFTweaksRemoveEdge": {
2026-04-17 09:04:35 -05:00
"Content": "Microsoft Edge - Remove",
2026-06-29 10:34:21 -05:00
"Description": "Uninstalls Microsoft Edge by creating dummy MicrosoftEdge.exe file in the legacy Edge folder. This tricks Windows into unlocking the official Edge uninstaller allowing for a system-level removal.",
2026-01-27 21:11:30 +02:00
"category": "z__Advanced Tweaks - CAUTION",
"panel": "1",
"InvokeScript": [
2026-06-29 10:34:21 -05:00
"
$Path = Resolve-Path -Path \"$Env:ProgramFiles (x86)\\Microsoft\\Edge\\Application\\*\\Installer\\setup.exe\" | Select-Object -Last 1
if (Test-Path $Path) {
New-Item -Path \"$Env:SystemRoot\\SystemApps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\MicrosoftEdge.exe\" -Force
Start-Process -FilePath $Path -ArgumentList \"--uninstall --system-level --force-uninstall --delete-profile\" -Wait
Write-Host \"Microsoft Edge was removed\"
} else {
Write-Host \"Microsoft Edge is not installed\"
}
"
2026-01-27 21:11:30 +02:00
],
"UndoScript": [
"
2026-06-29 10:34:21 -05:00
Write-Host \"Installing Microsoft Edge...\"
2026-01-27 21:11:30 +02:00
winget install Microsoft.Edge --source winget
"
],
` ``