From b584afd6e9ab21a4a660c449f6a5559129521447 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Fri, 16 Jan 2026 04:28:59 +0200 Subject: [PATCH 01/14] Update tweaks.json --- config/tweaks.json | 62 ++++++---------------------------------------- 1 file changed, 7 insertions(+), 55 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index 3377d80242..ee0f97e2b6 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -1588,67 +1588,19 @@ ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/tele" }, - "WPFTweaksDisableEdge": { - "Content": "Disable Edge", - "Description": "Prevent msedge.exe from running with explorer policies.", + "WPFTweaksRemoveEdge": { + "Content": "Remove Microsoft Edge", + "Description": "Unblocks Microsoft Edge uninstaller restrictions than uses that uninstaller to remove Microsoft Edge", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", - "Order": "a023_", - "registry": [ - { - "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\DisallowRun", - "Name": "DisableEdge", - "Type": "String", - "Value": "msedge.exe", - "OriginalValue": "" - }, - { - "Path": "HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", - "Name": "DisallowRun", - "Type": "DWord", - "Value": "1", - "OriginalValue": "" - } - ], - "link": "" - }, - "WPFTweaksMakeEdgeUninstallable": { - "Content": "Make Edge Uninstallable via settings", - "Description": "Makes it so you can uninstall edge via settings > installed apps", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "Order": "a026_", - "registry": [ - { - "Path": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft Edge", - "Name": "NoRemove", - "Type": "Dword", - "Value": "0", - "OriginalValue": "1" - } - ], + "Order": "a028_", "InvokeScript": [ - " - $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" - - takeown /f $File - icacls $File /grant \"Administrators:(F)\" - - $FileContent = Get-Content $File - $FileContent[7] = $FileContent[7] -replace \"disabled\", \"enabled\" - Set-Content $File $FileContent - " + "Invoke-WinUtilRemoveEdge" ], "UndoScript": [ " - $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" - - takeown /f $File - icacls $File /grant \"Administrators:(F)\" - - $FileContent = Get-Content $File - $FileContent[7] = $FileContent[7] -replace \"enabled\", \"disabled\" - Set-Content $File $FileContent + Write-Host 'Installing Microsoft Edge...' + winget install Microsoft.Edge --source winget " ], "link": "" From 483ad897cf93adb60445b3f872d8982fa1dfd63a Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Fri, 16 Jan 2026 04:30:24 +0200 Subject: [PATCH 02/14] Create Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 functions/public/Invoke-WinUtilRemoveEdge.ps1 diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 new file mode 100644 index 0000000000..e63d33a21a --- /dev/null +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -0,0 +1,10 @@ +function Invoke-WinUtilRemoveEdge { + + $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version + $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" + + Write-Host "Unlocking The Offical Edge Uninstaller than Removing Microsoft Edge..." + + New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force + Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' +} From 48af46341145e9bcb9e1af5d6f974839939ad8f8 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Fri, 16 Jan 2026 04:35:00 +0200 Subject: [PATCH 03/14] Update and rename EdgeUninstall.md to RemoveEdge.md --- .../EdgeUninstall.md | 48 ------------------- .../RemoveEdge.md | 33 +++++++++++++ 2 files changed, 33 insertions(+), 48 deletions(-) delete mode 100644 docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/EdgeUninstall.md create mode 100644 docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/EdgeUninstall.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/EdgeUninstall.md deleted file mode 100644 index a8ffcdf2fd..0000000000 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/EdgeUninstall.md +++ /dev/null @@ -1,48 +0,0 @@ -# Remove Microsoft Edge - -```json -"WPFTweaksMakeEdgeUninstallable": { - "Content": "Make Edge Uninstallable via settings", - "Description": "Makes it so you can uninstall edge via settings > installed apps", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "Order": "a026_", - "registry": [ - { - "Path": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft Edge", - "Name": "NoRemove", - "Type": "Dword", - "Value": "0", - "OriginalValue": "1" - } - ], - "InvokeScript": [ - " - $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" - - takeown /f $File - icacls $File /grant \"Administrators:(F)\" - - $FileContent = Get-Content $File - $FileContent[7] = $FileContent[7] -replace \"disabled\", \"enabled\" - Set-Content $File $FileContent - " - ], - "UndoScript": [ - " - $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" - - takeown /f $File - icacls $File /grant \"Administrators:(F)\" - - $FileContent = Get-Content $File - $FileContent[7] = $FileContent[7] -replace \"enabled\", \"disabled\" - Set-Content $File $FileContent - " - ], -``` - -## Registry Changes -Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. - -You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md new file mode 100644 index 0000000000..9c7629f754 --- /dev/null +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -0,0 +1,33 @@ +# Remove Microsoft Edge + +# Json File +```json + "WPFTweaksRemoveEdge": { + "Content": "Remove Microsoft Edge", + "Description": "Unblocks Microsoft Edge uninstaller restrictions than uses that uninstaller to remove Microsoft Edge", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a028_", + "InvokeScript": [ + "Invoke-WinUtilRemoveEdge" + ], + "UndoScript": [ + " + Write-Host 'Installing Microsoft Edge...' + winget install Microsoft.Edge --source winget + " + ], +``` +# Function +```json +function Invoke-WinUtilRemoveEdge { + + $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version + $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" + + Write-Host "Unlocking The Offical Edge Uninstaller than Removing Microsoft Edge..." + + New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force + Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' +} +``` From efc3ac447b6ddf9bcfb9d67d183707c9980dfb1e Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:27:54 +0200 Subject: [PATCH 04/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index e63d33a21a..a1884b6c5a 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -3,8 +3,10 @@ function Invoke-WinUtilRemoveEdge { $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" - Write-Host "Unlocking The Offical Edge Uninstaller than Removing Microsoft Edge..." + Write-Host "Unlocking The Offical Edge Uninstaller..." New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' + + Write-Host "Edge should now be uninstalled" } From 6dabaaf855f81d7ba58dd9b087fdb08f46c55934 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:28:03 +0200 Subject: [PATCH 05/14] Update RemoveEdge.md --- .../dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md index 9c7629f754..9dd7c5ef12 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -25,9 +25,11 @@ function Invoke-WinUtilRemoveEdge { $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" - Write-Host "Unlocking The Offical Edge Uninstaller than Removing Microsoft Edge..." + Write-Host "Unlocking The Offical Edge Uninstaller..." New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' + + Write-Host "Edge should now be uninstalled" } ``` From 99b39c921295b99a57783761f5a82401f963a793 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:34:57 +0200 Subject: [PATCH 06/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index a1884b6c5a..62c1095d98 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -1,12 +1,9 @@ function Invoke-WinUtilRemoveEdge { - $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version - $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" + $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*Installer\setup.exe" - Write-Host "Unlocking The Offical Edge Uninstaller..." + Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' - - Write-Host "Edge should now be uninstalled" } From 8ccab7ab641befc201d230a233e64f7cc5c8b4d7 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:35:05 +0200 Subject: [PATCH 07/14] Update RemoveEdge.md --- .../dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md index 9dd7c5ef12..ea58c98f76 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -22,14 +22,12 @@ ```json function Invoke-WinUtilRemoveEdge { - $Version = (Get-AppxPackage Microsoft.MicrosoftEdge.Stable).Version - $Path = "C:\Program Files (x86)\Microsoft\Edge\Application\$Version\Installer\setup.exe" + $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*Installer\setup.exe" - Write-Host "Unlocking The Offical Edge Uninstaller..." + Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' - - Write-Host "Edge should now be uninstalled" +} } ``` From 8c32f167803ceffe3c1305168253c81efd63c7fd Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:37:39 +0200 Subject: [PATCH 08/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index 62c1095d98..f05dfa29d7 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -1,6 +1,6 @@ function Invoke-WinUtilRemoveEdge { - $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*Installer\setup.exe" + $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." From 4f5ebc96442b3b7095f8d0d44761697bcb991322 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:37:54 +0200 Subject: [PATCH 09/14] Update RemoveEdge.md --- .../dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md index ea58c98f76..e5642b7bfb 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -22,7 +22,7 @@ ```json function Invoke-WinUtilRemoveEdge { - $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*Installer\setup.exe" + $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." From d5ff80de1b5260d4a3cd5b5ff9acf0eda9963b2b Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:51:11 +0200 Subject: [PATCH 10/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index f05dfa29d7..2b09be9859 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -1,6 +1,6 @@ function Invoke-WinUtilRemoveEdge { - $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" + $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe").FullName Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." From c2c6e18f845b634922570066496e8f61f68358f6 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:51:27 +0200 Subject: [PATCH 11/14] Update RemoveEdge.md --- .../dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md index e5642b7bfb..85391cb393 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -22,7 +22,7 @@ ```json function Invoke-WinUtilRemoveEdge { - $Path = Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" + $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe").FullName Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." From 6afcb903dcae3b952f5068242fe2740dba89acd2 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:54:51 +0200 Subject: [PATCH 12/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index 2b09be9859..3754b59bc0 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -1,6 +1,5 @@ function Invoke-WinUtilRemoveEdge { - - $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe").FullName + $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." From ab4a9cee916da875b499a3aa44284d2f5e6b7d4c Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:55:10 +0200 Subject: [PATCH 13/14] Update Invoke-WinUtilRemoveEdge.ps1 --- functions/public/Invoke-WinUtilRemoveEdge.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/public/Invoke-WinUtilRemoveEdge.ps1 b/functions/public/Invoke-WinUtilRemoveEdge.ps1 index 3754b59bc0..a153730a39 100644 --- a/functions/public/Invoke-WinUtilRemoveEdge.ps1 +++ b/functions/public/Invoke-WinUtilRemoveEdge.ps1 @@ -1,8 +1,7 @@ function Invoke-WinUtilRemoveEdge { - $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName - Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." - + + $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' } From 3d7cad543589f5eeca62608648fcfd2d8c316824 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:55:26 +0200 Subject: [PATCH 14/14] Update RemoveEdge.md --- .../dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md index 85391cb393..0bef13b3d8 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -21,13 +21,10 @@ # Function ```json function Invoke-WinUtilRemoveEdge { - - $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe").FullName - Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." - + + $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' } -} ```