Fix provisioning: Wait for msvc-2013 update 5 to finish
authorFrederik Gladhorn <frederik.gladhorn@qt.io>
Thu, 18 Jan 2018 10:37:57 +0000 (11:37 +0100)
committerSimo Fält <simo.falt@qt.io>
Fri, 2 Feb 2018 06:04:17 +0000 (06:04 +0000)
Installing Update 5 for Visual Studio 2013 Update 5 (KB2829760)...
Removing C:\Windows\Temp\vs12-kb2829760.exe ...
Caught System.UnauthorizedAccessException
Access to the path 'C:\Windows\Temp\vs12-kb2829760.exe' is denied.

Change-Id: I9fe136f0361ee21e38563dd17bf76bf4fd53747f
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
(cherry picked from commit b1198d34020f2aa291943ac5ee2a7a1eb19dbaf3)

coin/provisioning/qtci-windows-8.1-x86_64/msvc-2013-update5.ps1

index 202d072..447e7b1 100644 (file)
@@ -40,10 +40,9 @@ $url_cache = "\\ci-files01-hki.intra.qt.io\provisioning\windows\VS2013.5.exe"
 
 echo "Fetching patch for Visual Studio $version..."
 Copy-Item $url_cache $package
-$commandLine = $package
 
 echo "Installing Update 5 for Visual Studio $version..."
-. $commandLine /norestart /passive
+Start-Process -FilePath $package -ArgumentList "/norestart /passive" -Wait
 
 echo "Removing $package ..."
 remove-item $package