This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PowerShell Script to Download and Install Python 3.10.11 | |
# This script automates the process of downloading and installing Python 3.10.11. | |
# It includes error handling, version checking, admin privilege checking, installer validation, and post-installation cleanup. | |
# Check if Python 3.10.11 is already installed | |
$installedVersion = & python --version 2>&1 | |
if ($installedVersion -match "Python 3.10.11") { | |
Write-Host "Python 3.10.11 is already installed. Exiting..." | |
exit | |
} |
NewerOlder