@echo off
title Uninstall Paychek Safeguard addon
cd /d "%~dp0"
echo.
echo Close NinjaTrader first.
echo This script removes the Paychek / Safeguard addon.
echo.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0NinjaTrader\Uninstall-NinjaAddon.ps1"
set ERR=%ERRORLEVEL%
if not "%ERR%"=="0" (
  echo.
  echo Uninstall script exited with code %ERR%.
  pause
)
exit /b %ERR%
