mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 20:36:54 +08:00
Tier 1 image includes all configurations from pre-provisioning folder. E.g. these are pre-provisioned: Visual Studio 2015 version 14.0.25420.1 Update 3 Visual Studio 2019 + build tools version 16.11.7 Visual Studio 2022 + build tools version 17.0.1 Task-number: QTQAINFRA-4651 Pick-to: 6.2 Change-Id: I738ac703d72620f84008ac8a5e5d57911d89d055 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
23 lines
632 B
PowerShell
23 lines
632 B
PowerShell
# The DirectX SDK installer requires .Net framework 3.5 which isn't installed
|
|
# by default
|
|
|
|
$netFeature = "NetFx3"
|
|
try {
|
|
$netFeatureState = (Get-WindowsOptionalFeature -Online -FeatureName "$netFeature").State
|
|
if ($netFeatureState -eq "Enabled") {
|
|
Write-Host ".Net Framework is already installed"
|
|
exit 0
|
|
}
|
|
} catch {
|
|
Write-Host "Could not find .Net Framework Windows feature."
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "Installing .Net Framework client"
|
|
try {
|
|
Enable-WindowsOptionalFeature -Online -FeatureName "$netFeature" -All -NoRestart
|
|
} catch {
|
|
Write-Host "Could not install .Net framework"
|
|
exit 1
|
|
}
|