@echo off
title ToolBelt for Excel - Setup
echo.
echo  ToolBelt for Excel - Setup
echo  --------------------------
echo  Downloading the installer from excel-toolbelt.pages.dev ...
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
)
echo  Running the installer (a Windows admin prompt will appear once)...
powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\ToolBelt-install.ps1"
echo.
echo  If the installer window reported success:
echo    1. Close and reopen Excel
echo    2. Insert ^> Get Add-ins ^> SHARED FOLDER tab ^> ToolBelt for Excel ^> Add
echo.
pause
