@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 ####### %EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall rd /S /Q %EDGEROOT% 1>nul 2>nul rd /S /Q %EDGEUPDATE% 1>nul 2>nul del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 1>nul 2>nul del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 1>nul 2>nul echo ####### %0 #######