@echo off setlocal EnableExtensions DisableDelayedExpansion cd /d "%~dp0" set "PYTHONUTF8=1" set "PYTHONIOENCODING=utf-8" set "PYTHONHOME=" set "PYTHONPATH=" set "PO_PYTHON=%~dp0.python38\python.exe" set "PO_INSTALLER=%~dp0installers\python-3.8.10.exe" if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" set "PO_INSTALLER=%~dp0installers\python-3.8.10-amd64.exe" if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" set "PO_INSTALLER=%~dp0installers\python-3.8.10-amd64.exe" if exist "%PO_PYTHON%" goto ready echo Installing the bundled Python 3.8.10. Windows 7 SP1 is required. echo If Windows requests a restart, restart and run this script again. start /wait "" "%PO_INSTALLER%" /passive InstallAllUsers=0 TargetDir="%~dp0.python38" Include_launcher=0 InstallLauncherAllUsers=0 PrependPath=0 Include_doc=0 Include_test=0 Include_tcltk=0 Shortcuts=0 AssociateFiles=0 if errorlevel 1 goto failed :ready if not exist "%PO_PYTHON%" goto failed "%PO_PYTHON%" "%~dp0win7\build.py" setup if errorlevel 1 goto failed echo. echo Setup passed. Run 02_build_exe.cmd next. pause exit /b 0 :failed echo. echo SETUP FAILED. See README_WIN7.txt and the message above. echo Do not install the modern Python 3.11 build on Windows 7. pause exit /b 1