aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2019-06-23 21:26:03 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2019-06-23 21:26:03 +0300
commit5ccf25699d8f0beda0d8bb5bf19dbd08692ee893 (patch)
treed7fda0e1710cdc68350f00362d5600afac5a2ef6
parentf95c1a668dbed1f8737bb7c2164a56813152d649 (diff)
downloadportablepython-5ccf25699d8f0beda0d8bb5bf19dbd08692ee893.tar.gz
portablepython-5ccf25699d8f0beda0d8bb5bf19dbd08692ee893.zip
Use Start-Process with -Wait argument to execute msiexec
-rw-r--r--download.ps12
1 files changed, 1 insertions, 1 deletions
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
}