aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2017-09-04 12:49:20 +0300
committerJani Heikkinen <jani.heikkinen@qt.io>2017-09-14 12:08:32 +0000
commit892833cda910143a8cfd73062c90c8ac080dd8fe (patch)
tree8c5f2ce4a8a742515cad7efe53a9dc95d298244c
parenta9cf936a6304550b923bd325d05bdb209ca82371 (diff)
Provisioning: Invoke installer with Start-Process
By launching an installer with Start-Process and -Wait, we make sure no handles are left holding on to the installer when we try to delete it at cleanup. Change-Id: Ic9b700ea1ce9e70089ba4cb7e91d9765ca976333 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
-rw-r--r--coin/provisioning/common/vc_redist.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/coin/provisioning/common/vc_redist.ps1 b/coin/provisioning/common/vc_redist.ps1
index 95567669..4213dde9 100644
--- a/coin/provisioning/common/vc_redist.ps1
+++ b/coin/provisioning/common/vc_redist.ps1
@@ -59,6 +59,6 @@ echo "Fetching from URL..."
Download $externalUrl $internalUrl $package
Verify-Checksum $package $sha1
echo "Installing $package..."
-cmd /c "$package /q"
+Start-Process -FilePath $package -ArgumentList "/q" -Wait
echo "Remove $package..."
del $package