Skip to content

Commit 231449f

Browse files
committed
Misc
1 parent ebb3301 commit 231449f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

download.ps1

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe
2-
# https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe
3-
# https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe.asc
4-
5-
# https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe
6-
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
7-
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe.asc
8-
91
if ($env:PYARCH -eq "64") {
102
$filename = "python-${env:PYVERSION}-amd64.exe"
113
} else {
@@ -25,12 +17,7 @@ Write-Output "Log file: $logfile"
2517
$client = New-Object System.Net.WebClient
2618
$client.DownloadFile($url, $target)
2719

20+
# Replace TARGET_DIR in unattend.xml.in with our target directory
2821
((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml
2922

30-
if (Test-Path env:CI) {
31-
Remove-Item -Force -Recurse HKCU:\Software\Python
32-
Remove-Item -Force -Recurse HKLM:\Software\Python
33-
Remove-Item -Force -Recurse HKLM:\Software\Wow6432Node\Python
34-
}
35-
3623
Start-Process -FilePath "$target" -ArgumentList "/quiet","/log","$logfile" -Wait

0 commit comments

Comments
 (0)