This repository contains a robust batch script designed to install Python 3.12.1 on Windows ๐ฅ๏ธ. The script includes detailed logging functionality, ensuring that each step of the installation process is recorded in a log file created on your desktop ๐.
- Automated Installation: Automatically downloads and installs Python 3.12.1 โ๏ธ.
- Detailed Logging: All installation steps are logged into a file located in a
Python_Install_Logs
folder on your desktop ๐. - Error Handling: The script checks for errors during the download, installation, and verification processes, logging any issues encountered ๐จ.
- Silent Installation: Python is installed silently with all users having access, and the PATH variable is updated automatically ๐.
-
Download the Script:
- Click on the
install_python_3.12.1.bat
file in this repository. - Click the Download button to save the script to your local machine ๐พ.
- Click on the
-
Run the Script:
- Navigate to the location where you downloaded the script.
- Right-click on
install_python_3.12.1.bat
and select Run as administrator ๐ก๏ธ.
- PYTHON_VERSION: Specifies the Python version to install (3.12.1).
- LOG_DIR: Directory where the log file will be stored (on your desktop ๐ฅ๏ธ).
- LOG_FILE: The log file that records the installation process ๐.
- INSTALLER_NAME: The name of the Python installer file.
- INSTALLER_URL: The URL from which the Python installer is downloaded ๐.
- Create Log Directory: The script first checks if the log directory exists on the desktop. If not, it creates the directory ๐๏ธ.
- Start Logging: The script begins logging each step ๐.
- Download Installer: The script downloads the Python installer from the official Python website ๐ฅ.
- Install Python: The installer is run silently, installing Python for all users and updating the PATH ๐ ๏ธ.
- Verify Installation: After installation, the script checks that Python was installed correctly by running
python --version
๐ง. - Cleanup: The installer file is deleted after a successful installation ๐งน.
All log files are stored in the Python_Install_Logs
folder on your desktop ๐. Each log entry includes a timestamp for easy tracking โฑ๏ธ. The log file provides a detailed report on each step of the installation process, including any errors encountered ๐จ.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have suggestions or improvements, please feel free to share by contacting me directly โ๏ธ.
For any questions or issues, please create an issue.
- How to Download the Repo: Provides instructions on downloading the repository.
- Prerequisites: Lists the system and connection requirements.
- Usage: Details on how to run the installation script.
- Instructions: Explains the step-by-step installation process.
- Logging: Describes how logs are stored and tracked.