KORSiRO

New Member
Hi all !

If you want to completely uninstall microsft edge during Windows 11 22h2 installation, just download this file and paste the $OEM$ folder in the source folder of your ISO image

(ISO\sources\$OEM$\$$\Setup\Scripts\SetupComplete.cmd)

@echo off
cd "C:\Program Files (x86)\Microsoft\Edge\Application\100.0.1185.36\Installer\setup.exe" -uninstall --force-uninstall --system-level --delete-profile
rmdir /s /q "C:\Program Files (x86)\Microsoft\Edge"
rmdir /s /q "C:\Program Files (x86)\Microsoft\EdgeCore"
rmdir /s /q "C:\Program Files (x86)\Microsoft\EdgeUpdate"
rmdir /s /q "C:\Program Files (x86)\Microsoft\EdgeWebView"
del /q /f "%0"

if your version of Microsoft Edge is different, you must change the version in the command :

cd "C:\Program Files (x86)\Microsoft\Edge\Application\100.0.1185.36\Installer\setup.exe" -uninstall --force-uninstall --system-level --delete-profile

If you also want Microsoft Edge not to reinstall during a Windows update, here is a reg file that adds the value "DoNotUpdateToEdgeWithChromium"=dword:00000001" in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate]
Have fun :)
 

Attachments

  • $OEM$.zip
    950 bytes
  • DoNotUpdateToEdgeWithChromium.reg
    286 bytes
Last edited:
NTLite makes uninstalling Edge even easier, by removing the Edge components. Though some 3rd-party apps may require Edge Legacy or EdgeWebView to work.

Your script uses an old method, which still works if you're on free NTLite.

DoNotUpdateToEdgeWithChromium is deprecated, and has never worked in W11. ChrEdge is the default, and it doesn't prevent WU from reinstalling Edge in the monthly update. If you want to remove Edge after each CU, you must use licensed NTLite's remove reinstalls.

Welcome to NTLite forums, and take advantage of the Search feature to catch up on Edge removal discussions.
 
NTLite makes uninstalling Edge even easier, by removing the Edge components. Though some 3rd-party apps may require Edge Legacy or EdgeWebView to work.

Your script uses an old method, which still works if you're on free NTLite.

DoNotUpdateToEdgeWithChromium is deprecated, and has never worked in W11. ChrEdge is the default, and it doesn't prevent WU from reinstalling Edge in the monthly update. If you want to remove Edge after each CU, you must use licensed NTLite's remove reinstalls.

Welcome to NTLite forums, and take advantage of the Search feature to catch up on Edge removal discussions.
Thank you for your reply but I don't have NTLITE premium only the free license so I don't have access to these features...
 
NTLite makes uninstalling Edge even easier, by removing the Edge components. Though some 3rd-party apps may require Edge Legacy or EdgeWebView to work.

Your script uses an old method, which still works if you're on free NTLite.

DoNotUpdateToEdgeWithChromium is deprecated, and has never worked in W11. ChrEdge is the default, and it doesn't prevent WU from reinstalling Edge in the monthly update. If you want to remove Edge after each CU, you must use licensed NTLite's remove reinstalls.

Welcome to NTLite forums, and take advantage of the Search feature to catch up on Edge removal discussions.
Where is that on premium? to prevent reinstalls?
 
You can't prevent a Reinstall, that's impossible unless you stop applying Monthly Updates.

Instead you perform a normal Update, restart Windows, and then load your current OS as the image. From the toolbar, select Remove Reinstalls to begin clean up.
 

Attachments

  • Windows 10 x64-2024-02-21-08-57-20.png
    Windows 10 x64-2024-02-21-08-57-20.png
    58.1 KB
I am not sure maybe its because EU laws in some regions? need to test that but i'm too tired right now
 
MS compliance with the Digital Markets Act allows Edge be uninstalled. Before this, Windows marked Edge as unremovable.
April 2024 is the deadline they've established for rolling it out to EEA countries.
 
But does it install back with updates is the real question, does it leave a flag that indicades its removed? if yes we can use that flag.
 
But does it install back with updates is the real question, does it leave a flag that indicades its removed? if yes we can use that flag.
... should not.
But to avoid any misunderstanding, at the moment I continue to insert the .reg file
Windows Registry Editor Version 5.00​
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate]​
"DoNotUpdateToEdgeWithChromium"=dword:00000001​
 
that doesn't work for a while.
If you remember, once with the command from PowerShell

"C:\Program Files (x86)\Microsoft\Edge\Application\<num_vers>\Installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall

MS Edge was not completely uninstalled; today, yes!
This is why, for the avoidance of doubt, at the moment, I add that .reg and in the last 2 months (2 WCU) I have had no problems...
 
... should not.
But to avoid any misunderstanding, at the moment I continue to insert the .reg file
Windows Registry Editor Version 5.00​
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate]​
"DoNotUpdateToEdgeWithChromium"=dword:00000001​
crypticus is correct. This rule only blocks EdgeUpdater from upgrading legacy Edge to Chromium.

Later W10 CU's removed legacy Edge and installed ChrEdge on the component level, and WU doesn't care about EdgeUpdater. W11 always had ChrEdge, so this reg key has zero functionality now.
 
If you remember, once with the command from PowerShell

"C:\Program Files (x86)\Microsoft\Edge\Application\<num_vers>\Installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall

MS Edge was not completely uninstalled; today, yes!
This is why, for the avoidance of doubt, at the moment, I add that .reg and in the last 2 months (2 WCU) I have had no problems...
Wrong, you're taking advantage of the DMA fix rolled out two months ago. Uninstall the current CU and roll back to December.
Try uninstalling Edge again. That "DoNotUpdateToEdgeWithChromium" rule has nothing to do with it.
 
Wrong, you're taking advantage of the DMA fix rolled out two months ago. Uninstall the current CU and roll back to December.
Try uninstalling Edge again. That "DoNotUpdateToEdgeWithChromium" rule has nothing to do with it.
Garlin, that's why I wrote "2 months" (I already tested the 3371)
 
Editing "\Windows\System32\IntegratedServicesRegionPolicySet.json" and rebooting has the same effect for non-EU PC's.

Switch the "defaultState" -> enabled. No need to change your Windows region, or edit the long country list.
Code:
{
  "$comment": "Edge is uninstallable.",
  "guid": "{1bca278a-5d11-4acf-ad2f-f9ab6d7f93a6}",
  "defaultState": "disabled",
  "conditions": {
    "region": {
      "enabled": ["AT", "BE", "BG", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GF", "GP", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "MQ", "NL", "NO", "PL", "PT", "RE", "RO", "SE", "SI", "SK", "YT"]
    }
  }
},
 
I hope my question is relevant in this thread.

I have removed the Edge (Chromium) component in Win11 23H2 via NTLite Pro edition because my company currently uses Google Chrome as default browser.

However, I would like to lay the groundwork to re-install Edge in my prebuilt images if we would change to Edge and deploy Copilot Pro. So, I tried to just re-install Edge using the local admin account in my test VM.

Then I found that with the current version of Edge (123.0.2420.65 as of this message) installed in the image and removed by NTLite, I cannot re-install the same version via Windows Installer package. The installation progress bar flashed and exited. I used the /l*v option in msiexec.exe to generate a verbose log. At the end of the log MSI says

"Windows Installer reconfigured the product. Product Name: Microsoft Edge."

Are there any ways to "force" the re-install of the same version already registered in Windows yet removed by NTLite? Or do I need to wait for a new version in order to "trigger" an upgrade installation?

Thanks.
 
Last edited:
NTLite removes Edge at the component level, which is not exactly the same as removal by the application.

Previously, Edge uninstalls were blocked by Windows. But if you overwrite the JSON file, then Edge is eligible for removal AND it's possible to re-install Edge afterwards. I would suggest this solution:

1. Don't remove Edge from the install image.

2. Follow post #18, and replace the JSON file.

3. Uninstall Edge using a Post-Setup command line:
Code:
cmd /c cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\*\Installer && .\setup --uninstall --force-uninstall --system-level

4. If you're currently using Chrome, install it after Step 3.

You should be able to uninstall Chrome and reinstall Edge from MSI. Using the edited JSON on an updated install image, I was able to remove Edge and reinstall it.
 
Back
Top