@ECHO off :: Check python installation python.exe --version > NUL :: Clean potential error or python version CLS :: Variables set "pipR=pip install -r .\requirements.txt" set "run=.\main.py" IF errorlevel 1 ( ECHO Installation of Python not found, installation... :: Install Python 3.11 from MS Store ECHO Y | winget install -he 9NRWMJP3717K ECHO Download and installation of dependencies... :: Install dependencies %LOCALAPPDATA%\Microsoft\WindowsApps\python.exe -m %pipR% :: Run app %LOCALAPPDATA%\Microsoft\WindowsApps\python.exe %run% ) ELSE ( :: Check dependencies python.exe -m %pipR% > NUL :: Run app python.exe %run% ) EXIT /b