From 79c0ae2362ca8891863d6ad1a54ac261cf62c9f4 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 17 Jun 2019 23:17:11 +0300 Subject: Remove python info from registry --- download.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3