@echo off
REM ============================================================
REM  amemor.ai - Windows installer (WSL2 + Ubuntu + smart-install)
REM  Double-click. Elevates to admin, then runs bootstrap.ps1.
REM  If WSL gets enabled on first run: reboot, then double-click again.
REM ============================================================
net session >/dev/null 2>&1
if %errorlevel% NEQ 0 (
  echo Requesting administrator rights...
  powershell -NoProfile -Command "Start-Process -Verb RunAs -FilePath '%~f0'"
  exit /b
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0bootstrap.ps1" %*
echo.
pause
