@echo off
chcp 65001 >nul
title Whyhano AI staff installer
set "WH_PS=%TEMP%\whyhano-install-%RANDOM%%RANDOM%.ps1"
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; for ($i = 1; $i -le 4; $i++) { $u = @('https://whyhano-install.benz9415.workers.dev/i.ps1', 'https://install.snowlynx.co.kr/i.ps1')[($i - 1) -band 1]; try { (New-Object Net.WebClient).DownloadFile($u, $env:WH_PS); exit 0 } catch { Write-Host ('retry ' + $i + ': ' + $_.Exception.Message); Start-Sleep -Seconds (3 * $i) } }; exit 1" < nul
if errorlevel 1 goto :fail
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "%WH_PS%"
del "%WH_PS%" >nul 2>&1
exit /b 0
:fail
echo.
echo [!] 설치 프로그램을 받지 못했어요. 인터넷 연결을 확인하고 다시 실행해 주세요.
pause
exit /b 1
