Skip to content

Instantly share code, notes, and snippets.

@SrejonKhan
Created May 25, 2023 09:16
Show Gist options
  • Save SrejonKhan/67a0283f26b5438ab67c6f9dc4789183 to your computer and use it in GitHub Desktop.
Save SrejonKhan/67a0283f26b5438ab67c6f9dc4789183 to your computer and use it in GitHub Desktop.
@echo off
rem 1. Check if Python is installed
python --version > nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed. Installing Python...
start /wait python_installer.exe
)
rem 2. Add a specified path to environment and system variable
set PATH=%PATH%;C:\your\specified\path
setx /M PATH "%PATH%"
rem 3. Check if Geany is installed
geany --version > nul 2>&1
if %errorlevel% neq 0 (
echo Geany is not installed. Installing Geany...
start /wait geany_installer.exe
)
rem 4. Check if VS Code is installed
code --version > nul 2>&1
if %errorlevel% neq 0 (
echo VS Code is not installed. Installing VS Code...
start /wait vscode_installer.exe
)
echo All requirements have been fulfilled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment