Facebook
From Weaboo, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 70
  1. @setlocal DisableDelayedExpansion
  2. @echo off
  3. if defined PROCESSOR_ARCHITEW6432 start %SystemRoot%\Sysnative\cmd.exe /c "%0 " &exit
  4. reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&goto :TheEnd)
  5.  
  6. set "u_path=%LocalAppData%\Microsoft"
  7. set "s_path=%ProgramFiles(x86)%\Microsoft"
  8. if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 (
  9.   set "s_path=%ProgramFiles%\Microsoft"
  10.   )
  11. )
  12.  
  13. @cls
  14. echo.
  15. choice /C YN /N /M "Microsoft Edge Chromium will be unintalled. Continue? [y/n]: "
  16. if errorlevel 2 exit
  17.  
  18. REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
  19. REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
  20. REG DELETE "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
  21.  
  22. echo.
  23. for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" (
  24. echo Canary...
  25. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-sxs --verbose-logging --force-uninstall --delete-profile
  26. )
  27. for /D %%i in ("%u_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
  28. echo Internal...
  29. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --verbose-logging --force-uninstall --delete-profile
  30. )
  31. for /D %%i in ("%u_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
  32. echo Dev...
  33. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --verbose-logging --force-uninstall --delete-profile
  34. )
  35. for /D %%i in ("%u_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
  36. echo Beta...
  37. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --verbose-logging --force-uninstall --delete-profile
  38. )
  39. for /D %%i in ("%u_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
  40. echo Stable...
  41. start "" /w "%%i\installer\setup.exe" --uninstall --verbose-logging --force-uninstall --delete-profile
  42. )
  43. for /D %%i in ("%u_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
  44. echo WebView2 Runtime...
  45. start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --verbose-logging --force-uninstall --delete-profile
  46. )
  47.  
  48. for /D %%i in ("%s_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
  49. echo WebView2 Runtime...
  50. start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall --delete-profile
  51. )
  52. for /D %%i in ("%s_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
  53. echo Stable...
  54. start "" /w "%%i\installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall --delete-profile
  55. )
  56. for /D %%i in ("%s_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
  57. echo Beta...
  58. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --system-level --verbose-logging --force-uninstall --delete-profile
  59. )
  60. for /D %%i in ("%s_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
  61. echo Dev...
  62. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging --force-uninstall --delete-profile
  63. )
  64. for /D %%i in ("%s_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
  65. echo Internal...
  66. start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --system-level --verbose-logging --force-uninstall --delete-profile
  67. )
  68.  
  69. del /f /q "%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" 2>nul
  70. del /f /q "%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" 2>nul
  71.  
  72. REG ADD "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f 1>nul
  73.  
  74. :TheEnd
  75. echo.
  76. echo Press any key to exit.
  77. pause >nul
  78. exit
captcha