@echo off
REM Appmint hub agent — Windows installer wrapper.
REM
REM Right-click this file -> "Run as administrator".
REM Calls the PowerShell installer with execution policy bypassed for one
REM session only (no permanent system change).

cd /d "%~dp0"

REM Self-elevate if not already running as admin.
net session >nul 2>&1
if %errorLevel% neq 0 (
    echo Requesting administrator privileges...
    powershell -Command "Start-Process '%~f0' -Verb RunAs"
    exit /b
)

powershell -ExecutionPolicy Bypass -NoProfile -File "%~dp0install-windows.ps1"
pause
