From 5ccf25699d8f0beda0d8bb5bf19dbd08692ee893 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Sun, 23 Jun 2019 21:26:03 +0300 Subject: Use Start-Process with -Wait argument to execute msiexec --- download.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.ps1 b/download.ps1 index 78bb4a9..df06a92 100644 --- a/download.ps1 +++ b/download.ps1 @@ -34,6 +34,6 @@ if ($env:PYVERSION -like "3.*") { # Remove all __pycache__ directories Get-ChildItem -Include __pycache__ -Recurse -Force | Remove-Item -Force -Recurse } else { - msiexec /qn /i $target /L*V $logfile TARGETDIR=$targetdir ADDLOCAL=DefaultFeature,TclTk,Documentation,Tools REMOVE=Extensions,Testsuite + Start-Process -FilePath msiexec -ArgumentList "/qn","/i","$target","/L*V","$logfile","TARGETDIR=$targetdir","ADDLOCAL=DefaultFeature,TclTk,Documentation,Tools","REMOVE=Extensions,Testsuite" -Wait Get-ChildItem -Include "*.pyc" -Recurse -Force | Remove-Item -Force } -- cgit v1.2.3