Solved Programmatic Edge uninstall?


DataGoblin

Member
Member
Local time
7:16 PM
Posts
6
OS
Windows 11 23H2
Versions: Windows 11 23H2 22631, Windows 11 24H2 26100

Problem:

I appreciate that there are a lot of resources on the removal of Microsoft Edge and I have scooted around the internet quite a bit for my use case to no avail.

During my installation I have a script that modifies IntegratedServicesRegionPolicySet.json in System32 to enable Edge to be uninstallable for all countries. This works as intended, when the setup is complete, I can manually select uninstall and remove Edge.

The problem I am facing is I can not seem to remove Edge programmatically at all, no matter what I try.

Solutions Attempted:

I have tried all the commands below, along with a plethora of variations.
Powershell:
cmd.exe /c "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --uninstall --force-uninstall (and all other tacks I found)

Get-Package -Name 'Microsoft Edge' | Uninstall-Package -force

Start-Process "C:\Windows\System32\msiexec.exe" -ArgumentList '/uninstall {56EB18F8-B008-4CBD-B6D2-8C97FE7E9062} /quiet /qn /l*v' -Wait
Start-Process "C:\Windows\System32\msiexec.exe" -ArgumentList '/uninstall {FCC74B77-EC3E-4DD8-A80B-008A702075A9} /quiet /qn' -Wait

"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall --msedge --channel=stable --system-level --verbose-logging

I have also tried adding the NoRemove registry value to keys such as
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge

I have tested with all Edge related services stopped and started.

Extra Notes:
The default uninstall string does not seem to do anything when executed in CMD or PowerShell.
"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall --msedge --channel=stable --system-level --verbose-logging

I used Sysinternals Process Explorer to derive the command below which seems to execute once the above command is ran
This command does execute as expected and gives the same popup as below.
"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall


When doing the uninstall manually via the setting app, I get this pop-up, which I assume this is apart of the problem.

1727029269016.png


If anyone has any insight on how to fix this problem I would be grateful!
 
Windows Build/Version
Windows 11 23H2 22631

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
Microsoft has made it very difficult to uninstall Edge browser, but using an open-source tool you can still manage to uninstall Edge browser from your system.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
What I see in removal of Edge is that being part of Windows it may get reinstalled at the next Version Upgrade or maybe during a Build update, sort of a Default thing.

There's program installations that may still need the browser and refer to Internet Explorer to which end Windows still has an iexplore.exe file that calls Edge to provide the support the programs need, not finding that support may cause the program installs to fail. Putting iexplore.exe in the Run box will do that.

But since we only buy a license to use Windows it's just something to live with if we want to use the OS.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
What I see in removal of Edge is that being part of Windows it may get reinstalled at the next Version Upgrade or maybe during a Build update, sort of a Default thing.

There's program installations that may still need the browser and refer to Internet Explorer to which end Windows still has an iexplore.exe file that calls Edge to provide the support the programs need, not finding that support may cause the program installs to fail. Putting iexplore.exe in the Run box will do that.

But since we only buy a license to use Windows it's just something to live with if we want to use the OS.
I don't mind Edge being a core component of Windows. Just in this case, where a user can easily and manually remove it, I am confused why programmatic attempts to do so are blocked by Windows.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
Microsoft has made it very difficult to uninstall Edge browser, but using an open-source tool you can still manage to uninstall Edge browser from your system.

It is easy to nuke all of Edge during installation but my goal is to take advantage of the official uninstall provided by Windows and the fact it is so oddly locked down makes me more determined :LOL:
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
I am confused why programmatic attempts to do so are blocked by Windows.
If I were the sort of person to attack a Windows machine (don't read anything into that), one of the many things I would do is hamper web browsing.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
That method use to work with older builds now you have to look for alternative.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
If I were the sort of person to attack a Windows machine (don't read anything into that), one of the many things I would do is hamper web browsing.
Good point! I just hope I can at least find a hacky way to do it during OOBE or something.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
Versions: Windows 11 23H2 22631, Windows 11 24H2 26100

Problem:

I appreciate that there are a lot of resources on the removal of Microsoft Edge and I have scooted around the internet quite a bit for my use case to no avail.

During my installation I have a script that modifies IntegratedServicesRegionPolicySet.json in System32 to enable Edge to be uninstallable for all countries. This works as intended, when the setup is complete, I can manually select uninstall and remove Edge.

The problem I am facing is I can not seem to remove Edge programmatically at all, no matter what I try.

Solutions Attempted:

I have tried all the commands below, along with a plethora of variations.
Powershell:
cmd.exe /c "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --uninstall --force-uninstall (and all other tacks I found)

Get-Package -Name 'Microsoft Edge' | Uninstall-Package -force

Start-Process "C:\Windows\System32\msiexec.exe" -ArgumentList '/uninstall {56EB18F8-B008-4CBD-B6D2-8C97FE7E9062} /quiet /qn /l*v' -Wait
Start-Process "C:\Windows\System32\msiexec.exe" -ArgumentList '/uninstall {FCC74B77-EC3E-4DD8-A80B-008A702075A9} /quiet /qn' -Wait

"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall --msedge --channel=stable --system-level --verbose-logging

I have also tried adding the NoRemove registry value to keys such as
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge

I have tested with all Edge related services stopped and started.

Extra Notes:
The default uninstall string does not seem to do anything when executed in CMD or PowerShell.
"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall --msedge --channel=stable --system-level --verbose-logging

I used Sysinternals Process Explorer to derive the command below which seems to execute once the above command is ran
This command does execute as expected and gives the same popup as below.
"C:\Program Files (x86)\Microsoft\Edge\Application\129.0.2792.52\Installer\setup.exe" --uninstall


When doing the uninstall manually via the setting app, I get this pop-up, which I assume this is apart of the problem.

View attachment 109610


If anyone has any insight on how to fix this problem I would be grateful!
Any chance you could share the script you use to modify IntegratedServicesRegionPolicySet.json during install?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
You better have a system image handy before you start, because you're treading on dangerous ground in trying to remove Edge. Too many of Windows components are tied to it. I promise you that you will be left with other issues if you mess with it.
Makes more sense to me to just not use it. But then, I'm not on a rampage to thwart Microsoft.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
You better have a system image handy before you start, because you're treading on dangerous ground in trying to remove Edge. Too many of Windows components are tied to it. I promise you that you will be left with other issues if you mess with it.
Makes more sense to me to just not use it. But then, I'm not on a rampage to thwart Microsoft.
That is completely false and if you live in the EEA you can simply uninstall it as of like March of this year.

Anything (at least from Microsoft) that requires Edge uses WebView.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Try to find an older version of setup.exe, for example 92.0.902.67, and replace.
 

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI MS-7D98
    CPU
    Intel Core i5-13490F
    Motherboard
    MSI B760 GAMING PLUS WIFI
    Memory
    2 x 16 Patriot Memory (PDP Systems) PSD516G560081
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
    Sound Card
    Bluetooth Аудио
    Monitor(s) Displays
    INNOCN 15K1F
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD_BLACK SN770 250GB
    KINGSTON SNV2S1000G (ELFK0S.6)
    PSU
    Thermaltake Toughpower GF3 1000W
    Case
    CG560 - DeepCool
    Cooling
    ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
    Keyboard
    Corsair K70 RGB TKL
    Mouse
    Corsair KATAR PRO XT
    Internet Speed
    100 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
    Other Info
    https://www.userbenchmark.com/UserRun/66553205

Latest Support Threads

Back
Top Bottom