@echo off chcp 65001 >nul 2>&1 title RemoteSys Remote Assistant - Setup color 0B echo. echo ============================================ echo RemoteSys Remote Assistant - Installing echo (Chinese messages are shown by the installer) echo ============================================ echo. rem -- Step 1: download installer script to a temp file -- powershell -NoProfile -ExecutionPolicy Bypass -Command "try{[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12}catch{}; $ProgressPreference='SilentlyContinue'; Invoke-WebRequest -Uri 'http://remote.51hmkj.cn/agent/bootstrap.ps1' -OutFile \"$env:TEMP\rs_setup.ps1\" -UseBasicParsing; if(-not(Test-Path \"$env:TEMP\rs_setup.ps1\")){exit 1}" if errorlevel 1 ( echo. echo [!] Download failed. Please check network and retry. echo. pause exit /b 1 ) rem -- Step 2: run the script as a real file (-File gives true error line numbers) -- powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\rs_setup.ps1" if errorlevel 1 ( echo. echo [!] Installation FAILED. Please screenshot the red message above. echo. pause exit /b 1 ) echo. echo Installation finished. Press any key to close. pause >nul