Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kernferm/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.
https://github.com/kernferm/py3.12.1-installer-ps1

3121 powershell python

Last synced: 12 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

## Support the Project โญ

If you find this project useful, please give it a star! Your support is appreciated and helps keep the project growing. ๐ŸŒŸ

# ๐Ÿ 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.

---

### ๐Ÿ”ง v7.4.6 Release of PowerShell - Latest (recommended)

Select the version that matches your system specs:

- For **Windows 64-bit systems**: [Download 64-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/PowerShell-7.4.6-win-x64.msi)
- For **Windows 32-bit systems**: [Download 32-Bit Installer](https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/PowerShell-7.4.6-win-x86.msi)

Select the version of PowerShell you wish to install, with `v7.4.6` 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](https://github.com/KernFerm/Py3.12.1-installer-PS1/blob/main/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](https://github.com/KernFerm/Py3.12.1-installer-PS1/issues).

---

### ๐Ÿ“ 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.