Closed WayneSherman closed 1 year ago
Also tested on Windows 11 Pro 21H2:
It currently works. Tested on Windows 10 Pro 22H2 (build 19045.2604)
https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6
Thanks, I already had a fix but haven't published it as I can't test upgrade / repair scenarios atm. Pushed an update anyway.
Thank you guys for your work on an Edge removal script.
I tested the script from ave9858/Uninstall Edge.md. It works to cleanly remove Edge on a recent Windows 10 21H2 VM. ( Although these two Appx packages are NOT removed:
But the latest version of Edge_Removal.bat is not removing Edge on the same test system. And if I run the latest version of Edge_Removal.bat once and then run the previous version right after, that does work for removing Edge.
My love for Edge is increasing day after day!
I am currently using a potato and it works here, but don't have space for a reinstall / vm atm.
Really want to nail this bastard again!
So there was a conflict with having OpenWebSearch installed prior to Edge_Removal. Fixed!
I had an issue on a new install where the script removes edge and webview correctly, but it leaves Edge Update stuck in limbo unable to be removed. I think what happened is that webview was in use by an application when I ran the script, and it stalled when uninstalling webview (the application in question crashed, and the script stalled there.)
I quit the script, and it doesn't matter if I re-run it, Edge Update stays and I can't manually remove it. In the end I fixed it by manually reinstalling webview, and then re-running the script. Webview was once again removed, except this time Edge Update woke up and uninstalled itself properly.
I'm not sure if there's anything that can be done in the script to work around this problem in case it happens, but if anybody else runs into this issue and ends up here looking for a solution, this should hopefully work.
@Ammako, I kill processes not once, but twice! Specifically to prevent race conditions. I guess I need to expand the list, or just do it one extra time ;)
I always recommended reinstalling Edge and Webview if having issues.
I should add it to the script itself at the end just like the getfirefox
command.
getedge
& getwebview
to download the setups from microsoft
Appreciate your feedback!
For my testing this uninstall issue has been generally fixed with this commit:
2023.07.08 fixed: https://github.com/AveYo/fox/commit/950f1d51b57a932e316de5c584165aa100928e80
Tested on Win10 and Win11. On Win10 the script outputs these items as uninstalled:
Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe
Microsoft.MicrosoftEdgeDevToolsClient_1000.19041.1023.0_neutral_neutral_8wekyb3d8bbwe
Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe
Microsoft.MicrosoftEdge.Stable_116.0.1938.69_neutral__8wekyb3d8bbwe
Microsoft.Win32WebViewHost_10.0.19041.1023_neutral_neutral_cw5n1h2txyewy
MS Edge is an absolute abomination and I do not want it on any of the systems I own or administer. So thank you for your efforts in developing this removal script.
Testing on Windows 10 Pro 21H2 last updated 2022-May, the 2021-Dec-26 "Edge_Removal.bat" works nicely. It completely removes Edge:
Sometime between 2022-May and Oct, Microsoft must have updated Edge so that the older script no longer works (tested on Win10 Pro 21H2 updated Oct 03). I tested the most recent "Edge_Removal.bat" from the main branch and it also does not work. The latest script does render the start menu and desktop icons non-functional, but Edge still is present: