mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-04 22:17:45 +08:00
Sometimes items are locked by some windows process so that they can't be removed. This will fail provisioning instantly. Let's give the removing process more time by retrying if it will fail on first attempt Change-Id: Ic5c16c0d920ed0625d0c6830323d0bc6ba2cd608 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
20 lines
646 B
PowerShell
20 lines
646 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
# This script installs DirectX SDK
|
|
|
|
$package = "DXSDK_Jun10.exe"
|
|
|
|
$cachedUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\$package"
|
|
$officialUrl = "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/$package"
|
|
$sdkChecksumSha1 = "8fe98c00fde0f524760bb9021f438bd7d9304a69"
|
|
$package_path = "C:\Windows\Temp\$package"
|
|
|
|
Download $officialUrl $cachedUrl $package_path
|
|
Verify-Checksum $package_path $sdkChecksumSha1 sha1
|
|
Write-Host "Installing DirectX SDK"
|
|
Run-Executable $package_path "/u"
|
|
|
|
Remove "$package_path"
|
|
|
|
Write-Output "DirectX SDK = 9.29.1962 (Jun 10)" >> ~\versions.txt
|