1- $PythonInstaller = " $PSScriptRoot \python3.7.3 .exe"
1+ $PythonInstaller = " $PSScriptRoot \python3.7.9 .exe"
22$StepNumber = 1
33
44function Write-StepTitle ([String ] $StepMessage ) {
@@ -13,17 +13,17 @@ function Write-StepTitle([String] $StepMessage) {
1313}
1414
1515function Get-PythonExecutable {
16- Write-StepTitle " Looking for existing Python 3.7.3 installation."
17- return Get-WmiObject - Namespace " root/cimv2" - Class Win32_Product - Filter " Name Like 'Python 3.7.3 Executables%'"
16+ Write-StepTitle " Looking for existing Python 3.7.9 installation."
17+ return Get-WmiObject - Namespace " root/cimv2" - Class Win32_Product - Filter " Name Like 'Python 3.7.9 Executables%'"
1818}
1919
2020function Get-PythonInstallationTarget {
2121 if ([Environment ]::Is64BitOperatingSystem) {
2222 Write-StepTitle " Downloading x64 version of Python."
23- return " https://www.python.org/ftp/python/3.7.3 /python-3.7.3 -amd64-webinstall.exe"
23+ return " https://www.python.org/ftp/python/3.7.9 /python-3.7.9 -amd64-webinstall.exe"
2424 } else {
2525 Write-StepTitle " Downloading x86 version of Python."
26- return " https://www.python.org/ftp/python/3.7.3 /python-3.7.3 -webinstall.exe"
26+ return " https://www.python.org/ftp/python/3.7.9 /python-3.7.9 -webinstall.exe"
2727 }
2828}
2929
@@ -79,6 +79,6 @@ if ($PythonExecutable.count -eq 0) {
7979 Update-UserEnvironmentPath
8080 Remove-Item $PythonInstaller
8181} else {
82- Write-Host " Python 3.7.3 is already installed." - ForegroundColor Green
82+ Write-Host " Python 3.7.9 is already installed." - ForegroundColor Green
8383}
8484Install-Virtualenv
0 commit comments