Last active
April 27, 2021 16:30
-
-
Save PureOcean/771eaff8a2e8fa8357e127d3a806e7f7 to your computer and use it in GitHub Desktop.
Remover_EdgeWithChromium.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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