@echo off
rem RiseOn Arena Server - Windows installer (from the "Gop may" page). Downloads and runs the lobby's install.ps1.
title RiseOn Arena Server - Setup
chcp 65001 >nul
set "PS1=%TEMP%\riseon-install.ps1"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$ProgressPreference='SilentlyContinue'; [Net.ServicePointManager]::SecurityProtocol='Tls12'; Invoke-WebRequest https://riseon-lobby.ngdtuanh.workers.dev/dl/install.ps1 -OutFile $env:PS1 -UseBasicParsing"
if errorlevel 1 (echo. & echo Khong tai duoc bo cai. Kiem tra mang roi chay lai. & pause & exit /b 1)
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%"
if errorlevel 1 (echo. & echo Cai dat chua xong - xem thong bao o tren. & pause & exit /b 1)
del "%PS1%" >nul 2>&1
echo.
echo Xong! Cua so nay se tu tat sau 10 giay.
timeout /t 10 >nul
