/Py3.12.1-installer-PS1

This repository contains a robust PowerShell 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.

Primary LanguagePowerShellMIT LicenseMIT

๐Ÿ Python 3.12.1 Installation Script (PowerShell) ๐Ÿš€

This repository contains a robust PowerShell 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 ๐Ÿ“„.


โœจ Features

  • 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 ๐Ÿ”’.

๐Ÿš€ Usage

  1. Download the Script:

    • Click on the Install-Python-3.12.1.ps1 file in this repository.
    • Click the Download button to save the script to your local machine ๐Ÿ’พ.
  2. Run the Script:

    • Navigate to the location where you downloaded the script.
    • Right-click on Install-Python-3.12.1.ps1 and select Run with PowerShell ๐Ÿ’ป.
  3. Administrative Privileges:

    • Make sure to run the script with administrator privileges ๐Ÿ›ก๏ธ to ensure proper installation and PATH updates.

๐Ÿ› ๏ธ PowerShell v7.4.5 Release (Recommended)

Select the version of PowerShell you wish to install, with v7.4.5 being the latest recommended version ๐Ÿ”ง.


๐Ÿ“‹ Variables

  • $PythonVersion: Specifies the Python version to install (3.12.1) ๐Ÿ”ข.
  • $LogDir: Directory where the log file will be stored (on your desktop ๐Ÿ–ฅ๏ธ).
  • $LogFile: The log file that records the installation process ๐Ÿ“.
  • $InstallerName: The name of the Python installer file ๐Ÿ“‚.
  • $InstallerUrl: The URL from which the Python installer is downloaded ๐ŸŒ.

๐Ÿ› ๏ธ Steps

  1. Create Log Directory: The script first checks if the log directory exists on the desktop. If not, it creates the directory ๐Ÿ—‚๏ธ.
  2. Start Logging: The script begins logging each step ๐Ÿ“.
  3. Download Installer: The script downloads the Python installer from the official Python website ๐Ÿ“ฅ.
  4. Install Python: The installer is run silently, installing Python for all users and updating the PATH ๐Ÿ› ๏ธ.
  5. Verify Installation: After installation, the script checks that Python was installed correctly by running python --version ๐Ÿง.
  6. Cleanup: The installer file is deleted after a successful installation ๐Ÿงน.

๐Ÿ“ Logging

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 ๐Ÿšจ.


๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details ๐Ÿ“„.


๐Ÿ’ก Contributing

If you have suggestions or improvements, please feel free to share by contacting me directly โœ‰๏ธ.


๐Ÿ“ง Contact

For any questions or issues, please create an issue.


๐Ÿ“ Notes:

  • 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.