- CMD 창 실행 (관리자 권한)
- wmic datafile where “name=’%programfiles(x86):\=\\%\\Microsoft\\Edge\\Application\\msedge.exe'” get version /format:list 로 설치된 엣지 버전 확인
- cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\버전\Installer 으로 엣지 설치된 폴더로 이동
- setup –uninstall –force-uninstall –system-level 엣지 삭제
@echo off
FOR /F "tokens=2 delims==" %%I IN (
'wmic datafile where "name='%programfiles(x86):\=\\%\\Microsoft\\Edge\\Application\\msedge.exe'" get version /format:list'
) DO SET "edgeversion=%%I"
IF defined edgeversion (
"%programfiles(x86)%\Microsoft\Edge\Application\%edgeversion%\Installer\setup" --uninstall --force-uninstall --system-level
)
pause & exit