@echo off
setlocal
REM Install JACO using the official checksum-verifying Windows installer.
REM No administrator access, permanent execution-policy change or embedded credentials.
powershell.exe -NoProfile -Command "$ErrorActionPreference='Stop'; $p=Join-Path ([IO.Path]::GetTempPath()) ('jaco-install-'+[guid]::NewGuid().ToString('N')+'.ps1'); try { Invoke-WebRequest -UseBasicParsing -Uri 'https://jacocode.com/install.ps1' -OutFile $p; & powershell.exe -NoProfile -ExecutionPolicy Bypass -File $p; if($LASTEXITCODE -ne 0){exit $LASTEXITCODE} } catch { Write-Error $_; exit 1 } finally { Remove-Item -LiteralPath $p -Force -ErrorAction SilentlyContinue }"
if errorlevel 1 exit /b %ERRORLEVEL%
start "" "https://jaco-cloud-relay-validation.onrender.com/link/remote.html"
echo Start JACO Lite from the Start menu, or use your existing running Aura. Sign in and pair your computer in JACO Cloud.
exit /b 0
