@echo off
chcp 65001 >nul
title S-Live Install

where node >nul 2>nul
if errorlevel 1 (
  echo [ERROR] Node.js is not installed. Install Node.js 20 LTS first.
  pause
  exit /b 1
)

powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install.ps1"
if errorlevel 1 pause & exit /b 1

echo.
echo Install complete. Use the S-Live Desktop shortcut to open the app.
pause
