From d7cc5981e08992cb976ae6b6f992d26a7933e3b1 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:33:09 -0700 Subject: [PATCH] allow uninstallation of edge trough install tab (#4716) * unlock edge uninstall whenever the user trys to uninstall edge trough install tab * Update Invoke-WPFUnInstall.ps1 --- functions/public/Invoke-WPFUnInstall.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/public/Invoke-WPFUnInstall.ps1 b/functions/public/Invoke-WPFUnInstall.ps1 index 1110faea..4df18cb0 100644 --- a/functions/public/Invoke-WPFUnInstall.ps1 +++ b/functions/public/Invoke-WPFUnInstall.ps1 @@ -43,6 +43,10 @@ function Invoke-WPFUnInstall { $sync.ProcessRunning = $true Show-WPFInstallAppBusy -text "Uninstalling apps..." + if ($packagesWinget -contains "Microsoft.Edge") { + New-Item -Path "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force + } + # Uninstall all selected programs in new window if($packagesWinget.Count -gt 0) { Install-WinUtilProgramWinget -Action Uninstall -Programs $packagesWinget