How to remove new Edge in LTSC 2021?

Discussion in 'Windows 10' started by xpirad, Nov 22, 2022.

  1. xpirad

    xpirad MDL Novice

    Nov 3, 2017
    31
    13
    0
    It can't be removed in the control panel, uninstall button is greyed out.
    Also some articles said it can be removed using "setup --uninstall --force-uninstall --system-level", that didn't work either. It's just gonna reinstall itself.
    How to remove it??
     
  2. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,390
    1,322
    120
    #2 kaljukass, Nov 22, 2022
    Last edited: Nov 22, 2022
    If you have it grayed out and you can't remove it as usual, then there is something wrong with your system.
    MS Edge Chromium is a completely standalone program and can be installed on and removed from any machine, including any Linux or Mac computer or OS etc.
    But it is not recommended to remove it from Microsoft Windows, because now it is the only browser on which all the systems and subroutines of the Windows OP system are based.
    And this "setup --uninstall --force-uninstall --system-level" doesn't work, because it's not correct and full script. It's only part of full script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. LittlePro

    LittlePro MDL Senior Member

    Jan 19, 2017
    388
    137
    10
    #3 LittlePro, Nov 22, 2022
    Last edited: Nov 22, 2022
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. alexxf

    alexxf MDL Addicted

    Feb 9, 2008
    990
    732
    30
    MS Edge Chromium in Windows LTSC 2021 is part of the O.S.. It can't be unistalled, at least in ordinary way
     
  5. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,390
    1,322
    120
    Don't joke. MS Edge Chromium does not use any files included in Windows, and neither does any Microsoft OS use any Edge files.
    And now for a long time no other Windows component uses MS Edge browser itself either, but for this is there MSEdge WebView2.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. alexxf

    alexxf MDL Addicted

    Feb 9, 2008
    990
    732
    30
    #6 alexxf, Nov 22, 2022
    Last edited: Nov 22, 2022

    It only can be uninstalled (and with no succes) by external tools:
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,316
    7,023
    210
    I always remove it, using a little script, original from @abbodi1406:

    Code:
    @setlocal DisableDelayedExpansion
    @echo off
    if defined PROCESSOR_ARCHITEW6432 start %SystemRoot%\Sysnative\cmd.exe /c "%0 " &exit
    reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&goto :TheEnd)
    
    set "u_path=%LocalAppData%\Microsoft"
    set "s_path=%ProgramFiles(x86)%\Microsoft"
    if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 (
      set "s_path=%ProgramFiles%\Microsoft"
      )
    )
    
    @cls
    if /I $%1==$FORCE goto autoyes
    echo.
    choice /C YN /N /M "Microsoft Edge Chromium will be uninstalled. Continue? [y/n]: "
    if errorlevel 2 exit
    
    :autoyes
    sc.exe config EdgeUpdate start= disabled 2>nul
    sc.exe config edgeupdatem start= disabled 2>nul
    taskkill.exe /IM MSEdgeUpdate.exe /T /F 2>nul
    taskkill.exe /IM MSEdge.exe /T /F 2>nul
    sc.exe delete EdgeUpdate 2>nul
    sc.exe delete edgeupdatem 2>nul
    reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    
    echo.
    for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Canary...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-sxs --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Internal...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Dev...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Beta...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Stable...
    start "" /w "%%i\installer\setup.exe" --uninstall --verbose-logging --force-uninstall --delete-profile
    )
    
    :: 
    :: Enable the following commands only if you also want to remove WebView2, which can break widgets.
    :: 
    
    ::for /D %%i in ("%u_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
    ::echo WebView2 Runtime...
    ::start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --verbose-logging --force-uninstall --delete-profile
    ::)
    ::for /D %%i in ("%s_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
    ::echo WebView2 Runtime...
    ::start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall --delete-profile
    ::)
    
    :: 
    :: End of WebView2 commands.
    :: 
    
    for /D %%i in ("%s_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Stable...
    start "" /w "%%i\installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Beta...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Dev...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Internal...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --system-level --verbose-logging --force-uninstall --delete-profile
    )
    
    if not exist "\\?\%ProgramFiles(x86)%\Microsoft\Edge\" goto :DirFileKill
    if not exist "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate\" goto :DirFileKill
    if not exist "\\?\%ProgramFiles%\Microsoft\Edge\" goto :DirFileKill
    if not exist "\\?\%ProgramFiles%\Microsoft\EdgeUpdate\" goto :DirFileKill
    ECHO 
    ECHO Waiting for setup.exe to finish
    ECHO 
    timeout.exe /T 10 /NOBREAK
    
    :DirFileKill
    taskkill.exe /IM MSEdgeUpdate.exe /T /F 2>nul
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Edge"
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate"
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Temp"
    if exist "\\?\%ProgramFiles%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Edge"
    if exist "\\?\%ProgramFiles%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\EdgeUpdate"
    if exist "\\?\%ProgramFiles%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Temp"
    if exist "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk"
    if exist "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk"
    if exist "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk" del /f /q "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk"
    if exist "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" del /f /q "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk"
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f 2>nul
    
    reg.exe add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f 2>nul
    
    if /I $%1==$FORCE exit
    
    :TheEnd
    echo.
    echo Press any key to exit.
    pause >nul
    exit

    Edge Removal from @AveYo is also good to use.

    About reinstall: Yes that can happen, but I run my script as login task with the "force" parameter, so, the reinstalled Edge bites the dust again after just one reboot.
     
  9. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
  10. spinalGR

    spinalGR MDL Senior Member

    Oct 16, 2014
    405
    79
    10
    #10 spinalGR, Nov 27, 2022
    Last edited: Nov 29, 2022
    try via control panel or use the attached scripts
     

    Attached Files:

  11. alexxf

    alexxf MDL Addicted

    Feb 9, 2008
    990
    732
    30
    Uninstall button is greyed out in LTSC 2021
     
  12. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,390
    1,322
    120
    #12 kaljukass, Nov 27, 2022
    Last edited: Nov 27, 2022
    But what do you really want - that your computer does not have EDGE CHROMIUM or you want to press buttons?
    There is no problem with Edge in any current Windows 10, you can freely and completely remove it from your Windows 10.
    Remove all these folders and youäre done
    %LocalAppData%\Microsoft\Edge
    %ProgramFiles(x86)%\Microsoft\Edge
    %ProgramFiles(x86)%\Microsoft\EdgeCore
    %ProgramFiles(x86)%\Microsoft\EdgeUpdate
    %ProgramFiles(x86)%\Microsoft\EdgeWebView - if you don't use any app that needs it
    And once they are removed, clean the registry, shedled tasks for Edge and that's it.
    You're completely done.

    But at the same time, I can't understand why you need to do this. You don't need to use Edge. You don't even have to see it if you don't want to. Why does he bother you so much?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,645
    270
  14. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,390
    1,322
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,528
    13,518
    340
    #15 xinso, Nov 29, 2022
    Last edited: Nov 29, 2022
    typo
     
  16. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,645
    2,620
    120

    Edge is an ugly Vivaldi clone so just use the original, and the way is "integrated" in windows takes more than 1GB of space (excluding the user profile), because the separate updater the backup versions and so on.

    Maybe you don't care of the wasted space, but some people do.
     
  17. windsman

    windsman MDL Expert

    Jan 11, 2010
    1,490
    1,345
    60
    I always uninstall Edge when make a W10 LTSC 21H2 install offline mode, version 92.0.902.67 easily uninstalled
     
  18. boyonthebus

    boyonthebus MDL Expert

    Sep 16, 2018
    1,168
    752
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...