mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 11:56:31 +08:00
There are two image templates right away: -70 is Windows 11 with no Visual Studio or Windows SDK ever installed. -71 includes VS2022 17.9.1 (MSVC 14.39.33519) and Windows SDK 10.0.26100.1742 Image changes compared to 23h2: - VS2019 is left out as it's no longer used in provisioning scripts. - Old DirectX installation (10-dxsdk.ps1) is left out. It's legacy, originally used for Windows 7, and newer libraries should be found from Windows SDK. - 08-libclang-v100-dyn.ps1 is removed as it's no longer used. It had dependency to VS2019. - These images use UEFI instead of BIOS. [CI Platforms] Task-number: QTQAINFRA-6734 Task-number: QTQAINFRA-6823 Change-Id: I53a62c74b07d7fbfc9b1afbe44444272ae7c51e7 Reviewed-by: Tero Heikkinen <tero.heikkinen@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
|
|
}
|