ShadowWhisperer / Remove-MS-Edge

Uninstall Microsoft Edge silently, through an executable or batch script.
2.21k stars 81 forks source link

Remove additional Edge components. #4

Closed T0m0rr0w closed 2 years ago

T0m0rr0w commented 2 years ago

Hi. Would it be possible to add Edge Update and WebView2 Runtime to the script? Also while the script worked there is still a 48KB entry of Edge itself under Installed Programs for some reason. Would be great if the script got rid of all 3 entries.

ShadowWhisperer commented 2 years ago

Hey,

The script has been updated to remove WebView. The update folder also goes away, when that is removed.

Run the script again, and check if the 48KB still remains. I'm not certain to where you are referring.

T0m0rr0w commented 2 years ago

Thank you for the quick update. Edge, Edge Update and WebView2 were all properly removed with the updated script. Only some empty folders are left where they used to be.

For some reason Settings > Apps > Installed Apps still shows Microsoft Edge with 48KB size and whatever build number of the OS is based on. So im guessing this might be some kind of included installer package. Possibly in WinSxS folder tho none of those are 48KB in there (some are smaller, same bigger). Oddly 3rd party programs such as CCleaner do not show this 48KB leftover in installed programs list.

I mean it's not a big deal. Mostly visual annoyance that it's still there. I tested the script on two Windows 11 builds in VM: 22621 (beta) and 25145 (dev). I currently not not have any Windows 10 ISO's to test (downloading now) so maybe this leftover appears only in Windows 11?

ShadowWhisperer commented 2 years ago

It show on Windows 10, as well. The folder is C:\Users\Owner\AppData\Local\Packages\Microsoft.MicrosoftEdge* When deleted, the number changes to 0. It returns after a system reboot.

There are other locations containing Edge files, but they're not worth removing. (The time to find, log what breaks, and script it)

I've messed with deleting all Edge registry items, in the past, and had problems. The best option is to remove Edge from the initial install with NTLite. It's what I use.