Skip to content

Instantly share code, notes, and snippets.

@PureOcean
Last active April 27, 2021 16:30
Show Gist options
  • Save PureOcean/771eaff8a2e8fa8357e127d3a806e7f7 to your computer and use it in GitHub Desktop.
Save PureOcean/771eaff8a2e8fa8357e127d3a806e7f7 to your computer and use it in GitHub Desktop.
Remover_EdgeWithChromium.bat
@echo off
echo.
for /F "delims=" %%c in ('dir /s /b "%ProgramFiles(x86)%\Microsoft\Edge\setup.exe"') do "%%c" --uninstall --system-level --force-uninstall
rd /s /q "%ProgramFiles(x86)%\Microsoft\Edge"
rd /s /q "%localappdata%\Microsoft\Windows\Safety\edge"
rd /s /q "%localappdata%\Microsoft\Edge"
:: rd /s /q "%localappdata%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
:: rd /s /q "%Windir%\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
Reg.exe DELETE "HKLM\SOFTWARE\Microsoft\Edge" /f 1>nul 2>nul
Reg.exe ADD "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f 1>nul 2>nul
:: Sources:
:: https://gist.github.com/mapi68/533f6a4b9a4decde1e3d46ea2828a91a
:: https://www.wintips.org/uninstall-reinstall-microsoft-edge/
echo.
pause
exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment