aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2019-06-17 23:17:11 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2019-06-17 23:17:11 +0300
commit79c0ae2362ca8891863d6ad1a54ac261cf62c9f4 (patch)
tree6b35238304bc071db76c424189a0a81ace1230bf
parenta275dfe520c84ab76a9a04d182c8962568c90250 (diff)
downloadportablepython-79c0ae2362ca8891863d6ad1a54ac261cf62c9f4.tar.gz
portablepython-79c0ae2362ca8891863d6ad1a54ac261cf62c9f4.zip
Remove python info from registry
-rw-r--r--download.ps16
1 files changed, 6 insertions, 0 deletions
diff --git a/download.ps1 b/download.ps1
index 790b193..694efd0 100644
--- a/download.ps1
+++ b/download.ps1
@@ -27,4 +27,10 @@ $client.DownloadFile($url, $target)
((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