w10install/scripts/uninstall-edge.cmd

34 lines
997 B
Batchfile
Raw Normal View History

2021-01-10 18:45:55 +01:00
@echo off
set EDGEROOT="C:\Program Files (x86)\Microsoft\Edge"
set EDGEUPDATE="C:\Program Files (x86)\Microsoft\EdgeUpdate"
2021-02-08 00:32:09 +01:00
set INSTALLER=Application\84.0.522.52\Installer
2021-01-10 18:45:55 +01:00
echo ####### %0 #######
2021-02-08 00:02:42 +01:00
@echo on
2021-01-10 18:45:55 +01:00
%EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall
2021-02-08 00:02:42 +01:00
@echo off
2021-03-22 00:39:55 +01:00
echo sleep 10 seconds ...
ping 127.0.0.1 -n 10 > NUL 2>&1
2021-01-10 18:45:55 +01:00
2021-03-06 00:09:40 +01:00
echo.
2021-01-12 20:23:36 +01:00
echo cleanup ...
2021-03-06 00:09:40 +01:00
rd /S /Q %EDGEROOT% 2>nul
rd /S /Q %EDGEUPDATE% 2>nul
del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 2>nul
del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul
del /F "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul
del /F "%USERPROFILE%\Desktop\Microsoft Edge.lnk" 2>nul
rd /S /Q "%PROGRAMDATA%\Microsoft\EdgeUpdate" 2>nul
2021-01-10 23:14:52 +01:00
2021-03-06 00:09:40 +01:00
echo.
2021-01-12 20:23:36 +01:00
echo block edge updates ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^
/v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f
2021-03-06 00:09:40 +01:00
echo.
2021-01-10 18:45:55 +01:00
echo ####### %0 #######