diff options
| -rw-r--r-- | download.ps1 | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/download.ps1 b/download.ps1 index 694efd0..fd4a6c1 100644 --- a/download.ps1 +++ b/download.ps1 @@ -1,11 +1,3 @@ -# https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe -# https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe -# https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe.asc - -# https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe -# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe -# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe.asc - if ($env:PYARCH -eq "64") { $filename = "python-${env:PYVERSION}-amd64.exe" } else { @@ -25,12 +17,7 @@ Write-Output "Log file: $logfile" $client = New-Object System.Net.WebClient $client.DownloadFile($url, $target) +# Replace TARGET_DIR in unattend.xml.in with our target directory ((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml -if (Test-Path env:CI) { - Remove-Item -Force -Recurse HKCU:\Software\Python - Remove-Item -Force -Recurse HKLM:\Software\Python - Remove-Item -Force -Recurse HKLM:\Software\Wow6432Node\Python -} - Start-Process -FilePath "$target" -ArgumentList "/quiet","/log","$logfile" -Wait |
