mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Packaging targets needs to be parallel with older Windows 10 version until packaging site is ready to start using new windows 10 version. Inlcudes: * MSVC 2022 version 17.0.0 preview 3.1 * MSVC 2019 version 16.11.2 * MSVC 2019 build tools version 16.11.2 * MSVC 2015 version 14.0.25431.01 Update 3 Failing targets marked as insignificant Task-number: QTQAINFRA-4517 Change-Id: If841509923c2534a5bf626078b97f2d3f63a07b6 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
|
|
}
|