diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-06-19 21:27:55 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-06-19 21:27:55 +0300 |
| commit | 231449fb8e792db51dcb17f7b09d2a0b00f2cb0f (patch) | |
| tree | 85723bd218ae3e08b33010a537b4d56b4dbcdc29 | |
| parent | ebb33011b363f7dfe87f068685afddf21e9c7f59 (diff) | |
| download | portablepython-231449fb8e792db51dcb17f7b09d2a0b00f2cb0f.tar.gz portablepython-231449fb8e792db51dcb17f7b09d2a0b00f2cb0f.zip | |
Misc
| -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 |
