@echo off
setlocal
set "SCRIPT_DIR=%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%install-windows.ps1" -Offline
if errorlevel 1 (
  echo.
  echo Offline installation failed.
  echo Make sure archives are in the same folder:
  echo - node-v12.22.12-win-x64.zip (or node.zip)
  echo - Xray-windows-64.zip (or xray.zip)
  pause
  exit /b 1
)
echo.
echo Offline installation completed successfully.
pause
