w10install/scripts/uninstall-edge.cmd
Michael H.G. Schmidt 417e62f676 .
2021-02-08 00:02:42 +01:00

35 lines
971 B
Batchfile

@echo off
set EDGEROOT="C:\Program Files (x86)\Microsoft\Edge"
set EDGEUPDATE="C:\Program Files (x86)\Microsoft\EdgeUpdate"
set INSTALLER=Application\8*\Installer
echo ####### %0 #######
@echo on
%EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall
@echo off
timeout /T 30
echo cleanup ...
tasklist
taskkill /F /IM EdgeInstall.exe
taskkill /F /IM Setup.exe
@echo on
rd /S /Q %EDGEROOT%
rd /S /Q %EDGEUPDATE%
del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk"
del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk"
del /F "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk"
del /F "%USERPROFILE%\Desktop\Microsoft Edge.lnk"
rd /S /Q "%PROGRAMDATA%\Microsoft\EdgeUpdate"
@echo off
echo block edge updates ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^
/v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f
echo ####### %0 #######