Files
qt5/coin/pre-provisioning/qtci-windows-11_24H2-x86_64/01-enable-dotnet-framework.ps1
Elias Toivola 3fc4fe9e00 Add Windows 11 24h2 x86_64 UEFI with non-blocking tests
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>
2025-04-11 08:43:08 +00:00

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
}