mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-23 13:26: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.25431.1 Update 3 Visual Studio 2019 + build tools version 16.11.5 Visual Studio 2022 + build tools version 17.0.0 preview 7.0 Visual Studio 2022 + build tools version 17.0.1 Task-number: QTQAINFRA-4512 Change-Id: Ieceff236a9c12f34dc772c89cb93ad99d38d7fe5 Reviewed-by: Toni Saario <toni.saario@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
|
|
}
|