ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
24.16k stars 1.47k forks source link

Microsoft Edge can't uninstall #2672

Open Alcycber opened 2 months ago

Alcycber commented 2 months ago

Trying to uninstall Microsoft edge using win utility keeping getting a error saying ====Chris Titus Tech===== =====Windows Toolbox===== Running Script for WPFTweaksRemoveEdge [] Registry key not found: HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062} Cannot find uninstall methods for

-- Tweaks are Finished ---

crazycheetah42 commented 2 months ago

I have also noticed that Edge won't uninstall.

astroprogs11 commented 2 months ago

Yup, same issue.

ChrisTitusTech commented 2 months ago

Looks like Microsoft patched the region workaround and it no longer removes Edge... FML.

Alcycber commented 2 months ago

@ChrisTitusTech Thank you so much for replying it was driving me mad 😂 got any suggestions on remember removing?.

UltraCakeBakery commented 2 months ago

Can't you just swap the edge browser with chrome? As in, literally swap the binary files and change the icon for every shortcut? Or maybe symlink some shit? Idk man but there must be a creative way to just make windows open chrome for everything and then just hide edge from the user?

crazycheetah42 commented 2 months ago

@ChrisTitusTech I believe there is a NoRemove registry key for Edge. That makes it uninstallable from the regular Settings app. Maybe we could swap the "Remove Edge" button for a "Make Edge uninstallable" button.

crazycheetah42 commented 2 months ago

Yeah, the path is HKLM\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge

Linget0 commented 1 month ago

We shouldn't even need to change the region to unlock the uninstall, the best way is if the script could gain permission to modify the file, go into the ServicesRegionPolicy json and edit the text to change "Edge is uninstallable" default state from disabled to enabled then restore the ACL. Then the only other thing would be to remove the "NoRemove" registry key that grays out the uninstall. Heres a video for concept https://www.youtube.com/watch?v=_utrsNxQiR0

4yman-0 commented 1 month ago

Kihpla from (#2735 Edge Uninstall) linked to a UninstallEdge.ps1 file to uninstall Edge.

4yman-0 commented 1 month ago

This is a duplicate of (#2544 Removing Edge and Microsoft apps doesn't work).

ToddIndry37 commented 3 weeks ago

Well, I got the same issue here. I just want to get rid Microsoft Edge Stable on my Windows 10 22H2 but no works! I think because Microsoft patched it pretty quick since version 120+.

Also, when I dig into C:\ProgramData\Microsoft\EdgeUpdate\Logs\msedge-installer.log, I discovered some concerns here while I tries to uninstall Edge either via WinUtil & classic setup.exe --uninstall --system-level --verbose-logging --force-uninstall via Command Prompt:

...
[6300:11624:1019/201307.536:37035312:VERBOSE1:installer_state.cc(101)] Uninstall
[6300:11624:1019/201307.536:37035312:VERBOSE1:install_util.cc(284)] Existing version found: 130.0.2849.46
[6300:11624:1019/201307.664:37035437:VERBOSE1:shell_util.cc(4111)] Stable: didn't check uninstall policy, or policy disabled
[6300:11624:1019/201307.664:37035437:WARNING:setup_main.cc(3435)] Uninstall was blocked for this product: 93
[6300:11624:1019/201307.664:37035437:VERBOSE1:work_item_list.cc(32)] Beginning execution of work item list Write Installer Result
[6300:11624:1019/201307.665:37035437:VERBOSE1:set_reg_value_work_item.cc(208)] Successfully wrote into Software\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}
[6300:11624:1019/201307.665:37035437:VERBOSE1:set_reg_value_work_item.cc(208)] Successfully wrote into Software\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}
[6300:11624:1019/201307.665:37035437:VERBOSE1:set_reg_value_work_item.cc(204)] Successfully wrote value You don't have permissions to install at the system level. Run the installer as an administrator. into Software\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}
...

So... I found that the uninstall was blocked even I use that EEA feature/policy on Windows 10 that I found on XDA (although they said Windows 11 but it works on Windows 10). So yeah, that's something but also sucks that Microsoft patched it pretty quick.

ToddIndry37 commented 3 weeks ago

Yeah, the path is HKLM\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge

@crazycheetah42 Yeah it did, but unfortunately I think Microsoft patched it to block the Edge uninstall process.