Win11Debloat icon indicating copy to clipboard operation
Win11Debloat copied to clipboard

Edge remove

Open zbynekdrlik opened this issue 11 months ago • 19 comments

Hi, is it possible to remove edge browser? I have run your script but edge is still here. I went through custom configuration and select it. After success run, edge is still present.

zbynekdrlik avatar Mar 12 '24 14:03 zbynekdrlik

Heya,

What region is your Windows installation set to? You can find this in the settings, navigate to: Start > Settings > Time & Language > Region.

I think this issue is related to the fact that Microsoft only allows users to remove Edge if they are in the EEA (european economic area) due to the recent DMA legislation, more info here: https://blogs.windows.com/windows-insider/2023/11/16/previewing-changes-in-windows-to-comply-with-the-digital-markets-act-in-the-european-economic-area/

Raphire avatar Mar 12 '24 15:03 Raphire

I have this settings and slovakia is inside Europe image

zbynekdrlik avatar Mar 12 '24 18:03 zbynekdrlik

Thanks for the quick reply.

That region should be fine yea, could you check what your current windows version is? Microsoft has been rolling out the update that allows you to uninstall Edge quite slowly.

To do this press Windows key + R (win + R), and type: winver It should look something like this: image

According to Microsoft you need at least either Windows 10, version 22H2 Build 19045.4123 or Windows 11, version 23H2 Build 22631.3235.

Raphire avatar Mar 12 '24 19:03 Raphire

image

zbynekdrlik avatar Mar 12 '24 22:03 zbynekdrlik

Thanks for confirming your version.

I can reproduce the issue on my systems. I'll see if I can find an alternative way to remove it via the script. You should be able to uninstall it via the settings UI for now though.

Raphire avatar Mar 13 '24 19:03 Raphire

No possibility to remove edge in settings image

zbynekdrlik avatar Mar 14 '24 11:03 zbynekdrlik

Oh that is weird, a quick search shows you're not the only one with this issue. Maybe Microsoft is still messing about.

If you want to remove it manually, I have been able to get edge removed via winget.

I'm currently working on integrating this into the script aswell!

Raphire avatar Mar 16 '24 13:03 Raphire

Heya,

I have just pushed an experimental update that fixes edge removal. This version requires winget, which should be installed by default.

In my limited testing so far this seems to work a treat, but I will be testing it some more before fully releasing it.

If you're willing to try it, please download the experimental version here: https://github.com/Raphire/Win11Debloat/tree/experimental

Let me know how it works for you :)

Raphire avatar Mar 18 '24 19:03 Raphire

It seems still not working image

zbynekdrlik avatar Mar 18 '24 21:03 zbynekdrlik

That's a shame. I do notice that your edge version is quite a few versions behind (current version is 122), could that have something to do with the fact you can't uninstall it?

EDIT: @zbynekdrlik After doing some additional testing, it doesn't seem related to the edge version. I created a few VM's with region set to belgium and the uninstall option is greyed out there too, with Error 93 when trying to uninstall edge.

Raphire avatar Mar 20 '24 08:03 Raphire

Uninstalling Edge via Win11Debloat now works properly for EEA users, as long as uninstalling is not blocked by Windows itself.

If Windows does block the uninstall it will display error code 93, as demonstrated by @zbynekdrlik . I am looking into ways to bypass this issue.

Raphire avatar Mar 29 '24 16:03 Raphire

Hello, developer/user. Although I am no longer able to share the exit code that was reported in the terminal when attempting to remove said component, I would be inclined to perform a test against an experimental version. However, I do not know by what means the operation which consisted of the attempted removal could be reversed.

Registry | Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\DeviceRegion

Reported value for the DeviceRegion 32-bit DWORD key: 0x0000004d (77)

Ricky-Tigg avatar Apr 04 '24 10:04 Ricky-Tigg

No possibility to remove edge in settings image

Hello, I'd like to let you know i fixed this issue in my pull request. This script should be able to uninstall edge without any errors in the future. I am very happy that i can contribute to this project once again :)

loadstring1 avatar May 31 '24 09:05 loadstring1

I am still getting error 93 is there any update to this?

Winman486 avatar Jun 25 '24 02:06 Winman486

I am still getting error 93 is there any update to this?

If you are using loadstring1's PR, make sure you press 2 in the menu, where you get a bunch of (y/n)'s, as the stuff they added is only accessible form there (I think).

dssste avatar Jun 25 '24 07:06 dssste

@Raphire guys, seriously, come on. https://rentry.co/debloatguide#removing-microsoft-edge

sylv256 avatar Jun 25 '24 08:06 sylv256

@Raphire guys, seriously, come on. https://rentry.co/debloatguide#removing-microsoft-edge

Thanks for this link. I was under the impression this method didn't work anymore, but for some reason this does seem to work. I'll do some additional testing and see if I can implement this in the script.

Raphire avatar Jun 25 '24 22:06 Raphire

@Raphire guys, seriously, come on. https://rentry.co/debloatguide#removing-microsoft-edge

I have released an implementation of this (with some ideas from #64 mixed in) in this branch: https://github.com/Raphire/Win11Debloat/tree/EdgeRemove-experimental

It's not fully tested but seems to work well so far. I messed up my W11 VM template, so I'll have to setup my testing environment again tomorrow to do additional testing.

Raphire avatar Jun 25 '24 22:06 Raphire

The option to force remove edge has been merged with the master branch as of https://github.com/Raphire/Win11Debloat/commit/6049800f10d06c8bb3d003c35716dc9af3cebb8c

Raphire avatar Jul 02 '24 18:07 Raphire

Closing this issue as completed. As there have been no issues reported after the feature to forcefully remove Microsoft Edge was introduced with 6049800

Raphire avatar Jul 14 '24 10:07 Raphire