mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 23:46:51 +08:00
Pre-installed to tier 1:
MSVC 2022 17.3.6 plus build tools
MSVC 2019 16.11.20 plus build tools
MSVC 2015 update 3 14.0.25420.1
Task-number: QTQAINFRA-5262
Change-Id: Ibcc2950dd7edef0d6aa92cef7e602a69da8498d9
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
24 lines
707 B
PowerShell
24 lines
707 B
PowerShell
# The DirectX SDK installer requires .Net framework 3.5 which isn't installed by default
|
|
|
|
# NOTE! Windows Update service need to be enabled when running this script!
|
|
|
|
$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
|
|
}
|