Quick Hack: 20H2 Enablement without Edge

Discussion in 'Windows 10' started by sevenacids, Aug 6, 2020.

  1. BogusByte

    BogusByte MDL Novice

    Sep 30, 2016
    25
    11
    0
    Someting like this ?


    if exist "C:\Program Files (x86)\Microsoft\Edge" (
    For /f "tokens=* delims= " %%A in ('call dir /s /b "C:\Program Files (x86)\Microsoft\Edge\Application" ^| find /i "\Installer\setup.exe"') do (
    call "%%A" -uninstall -system-level -verbose-logging -force-uninstall"
    del "%appdata%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk"
    )
    )​
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,771
    53,009
    340
    I don't know what you mean
    currently, if you skipped Edge, WU does not re-offer kb4562830
    not sure if they will release separate update for Edge on 19042

    you mean add it to my batch repo? alright
     
  3. armond

    armond MDL Addicted

    Jun 16, 2008
    670
    213
    30
    #23 armond, Oct 5, 2020
    Last edited: Oct 5, 2020
    Yes.
    You are correct, but it seams the amd64_microsoft-windows-e..-firsttimeinstaller stuff comes back to the WinSxS folder if you check for update after a clean install of Windows 10 20H2. Edge then installs after a reboot and I see its welcome page. It's Edge 84.
    Or maybe Windows Update reinstalls KB4562830 but it's showing nothing in the update history.
    Probably more testing is needed.
    Thanks.
     
  4. rdubyah

    rdubyah MDL Novice

    May 30, 2012
    8
    9
    0
    #24 rdubyah, Oct 6, 2020
    Last edited: Oct 7, 2020


    In elevated command prompt
    Code:
    cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\8*\Installer
    setup --uninstall --force-uninstall --system-level[/CODE
     
  5. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,323
    4,239
    150
    From @abbodi1406:

    Code:
    @echo off
    reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&pause&exit)
    
    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"
      )
    )
    
    reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    
    for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" (
    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" (
    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" (
    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" (
    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" (
    start "" /w "%%i\installer\setup.exe" --uninstall --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
    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" (
    start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
    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" (
    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" (
    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" (
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --system-level --verbose-logging --force-uninstall --delete-profile
    )
    
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f
    pause
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,771
    53,009
    340
    if not installed (SkipEdge=1), EKBUpdate KB4562830 is indeed redownloaded and installed (under the hood) with the current 20H2 cumulative update

    uninstalling Edge after OS installation seems the proper solution (via setupcomplete.cmd i guess)
     
  7. PicoBot

    PicoBot MDL Novice

    Jul 7, 2015
    2
    0
    0
    A few days ago, I discovered something new concerning upgrades and the installation of edge chromium. I had a second ( spare ) installation of Windows 10 Pro 64 on a seperate partition. This installation was rarely used and therefore was either 1909 or 2004, wherefor I did an inplace upgrade using a ( german ) 21H1 iso, which I downloaded from the german site, which I am not allowed to post here :)

    And after the upgrade was completed, I found a full working 21H1 without Edge legacy, without Edge chromium and without any installers for Edge in the WinSxS folder. This installation works fine until now, and now I am curios what will happen on the second Tuesday of April. The only thing I did not tried yet is a "scan health" to check, if WIndows itself sees the component store as intact or as damaged, because of the missing chromium installers.
     
  8. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,323
    4,239
    150
    Edge is now handled by LCU, so, it will most likely be installed in the process.