@echo off
:: Check for admin rights
net session >nul 2>&1
if %errorlevel% neq 0 (
    echo Requesting Administrator privileges...
    powershell -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
    exit /b
)

echo iWifiMonitor Installer
echo =====================
echo.
echo This will install iWifiMonitor as a Windows service.
echo.
powershell -ExecutionPolicy Bypass -File "%~dp0install.ps1"
pause
