From e994e085660b7fbc2d603fb90626a9b9d3534888 Mon Sep 17 00:00:00 2001 From: BluTiger <65156144+Blu-Tiger@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:19:09 +0200 Subject: [PATCH] Update win_install.bat --- win_install.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/win_install.bat b/win_install.bat index 3369394..dca559d 100644 --- a/win_install.bat +++ b/win_install.bat @@ -1,4 +1,24 @@ @echo off +@REM Check and install python +@REM where /Q python >nul 2>nul +@REM if %errorlevel% neq 1 ( +@REM echo Checking Python... +@REM ) else ( +@REM echo python not found. Checking for Chocolatey... +@REM REM Check if Chocolatey is installed +@REM where /Q choco >nul 2>nul +@REM if %errorlevel% neq 1 ( +@REM echo Installing python using Chocolatey... +@REM choco install python -y +@REM ) else ( +@REM echo Chocolatey is not installed. +@REM echo Please install Chocolatey first from https://chocolatey.org/install +@REM echo After installing Chocolatey, you can run this script again to install ffmpeg. +@REM echo Alternatively, you can install python manually from https://www.python.org/ +@REM exit /b 1 +@REM ) +@REM ) + REM Get the Python version for /f "delims=" %%v in ('python -c "import sys; print('.'.join(map(str, sys.version_info[:3])))"') do set PYTHON_VERSION=%%v