@echo off setlocal EnableExtensions DisableDelayedExpansion set "PO_KIT_ROOT=%~dp0" cd /d "%PO_KIT_ROOT%" set "PYTHONUTF8=1" set "PYTHONIOENCODING=utf-8" set "PYTHONHOME=" set "PYTHONPATH=" "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%PO_KIT_ROOT%win7\install_env.ps1" set "PO_RESULT=%ERRORLEVEL%" if "%PO_RESULT%"=="3010" goto restart if "%PO_RESULT%"=="1641" goto restart if not "%PO_RESULT%"=="0" goto failed echo Setup passed. Run 02_build_exe.cmd next. goto finish :restart echo Windows requested a restart. Restart, then run 01_install_env.cmd again. goto finish :failed echo SETUP FAILED. Exit code: %PO_RESULT%. Keep the logs folder and the message above. :finish pause exit /b %PO_RESULT%