Imthedude025

Uninstall M$ Edge Via Batch/Powershell (Batch)

Jul 17th, 2021 (edited)
6
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. ::Uninstall M$ Edge Via Batch/Powershell ::
  3. ::Created by RU$$ [https://steamcommunity.com/id/CrypticNight7/] ::
  4. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  5. @ECHO OFF
  6.  
  7. Rem | Search For File Within Its Unique Location
  8. FOR /D %%G IN ("C:\Program Files (x86)\Microsoft\Edge\Application\*") DO IF EXIST "%%~fG\Installer\setup.exe" (
  9. set correctDir=%%G
  10. goto :foundFile
  11. )
  12. echo File setup.exe not found!
  13. goto :eof
  14.  
  15. :foundFile
  16. cd "%correctDir%\Installer\"
  17.  
  18. Rem | Run The Uninstall Suffex From Powershell
  19. powershell -executionpolicy bypass -command ".\setup.exe --uninstall --system-level --verbose-logging --force-uninstall"
  20. echo M$ Edge Has Been Completely Uninstalled.
  21. pause
  22. goto :eof
RAW Paste Data