@echo off
title ToolBelt for Excel - Uninstall
echo.
echo  ToolBelt for Excel - Uninstall
echo  ------------------------------
powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri 'https://excel-toolbelt.pages.dev/install-windows.ps1' -OutFile \"$env:TEMP\ToolBelt-install.ps1\" -UseBasicParsing"
if errorlevel 1 (
  echo  Download failed. Please check your internet connection and try again.
  pause
  exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\ToolBelt-install.ps1" -Uninstall
echo.
echo  Done. Restart Excel and ToolBelt will be gone.
pause
