@echo off
REM AyaanScript+ Windows installer launcher
REM Double-click this file to install. It elevates to PowerShell.

setlocal
title AyaanScript+ Installer

echo Starting AyaanScript+ installer...
echo.

REM Set execution policy for this session only and run the ps1 next to us
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-ayaanscript.ps1"

set RC=%ERRORLEVEL%
echo.
if %RC% NEQ 0 (
    echo Installer finished with errors. See messages above.
) else (
    echo Installer finished successfully.
)
echo.
pause
exit /b %RC%
