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" ) )
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
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.
In elevated command prompt Code: cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\8*\Installer setup --uninstall --force-uninstall --system-level[/CODE
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
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)
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.