mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 05:48:07 +00:00
[Windows] win-wdk: install WDK 11 (#4014)
This commit is contained in:
committed by
GitHub
parent
06659e17fd
commit
1052083f04
@@ -7,6 +7,12 @@ function Get-VisualStudioVersion {
|
||||
}
|
||||
}
|
||||
|
||||
function Get-SDKVersion {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
($installedApplications | Where-Object { $_.DisplayName -eq 'Windows SDK' } | Select-Object -First 1).DisplayVersion
|
||||
}
|
||||
|
||||
function Get-WixVersion {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
@@ -52,6 +58,14 @@ function Get-VisualStudioExtensions {
|
||||
)
|
||||
}
|
||||
|
||||
# SDK
|
||||
if (Test-IsWin19) {
|
||||
$sdkPackageVersion = Get-SDKVersion
|
||||
$sdkPackages = @(
|
||||
@{Package = 'Windows Software Development Kit Extension'; Version = $sdkPackageVersion}
|
||||
)
|
||||
}
|
||||
|
||||
if ((Test-IsWin16) -or (Test-IsWin19)) {
|
||||
# Wix
|
||||
$wixPackageVersion = Get-WixVersion
|
||||
@@ -74,6 +88,7 @@ function Get-VisualStudioExtensions {
|
||||
$extensions = @(
|
||||
$vsixs
|
||||
$ssdtPackages
|
||||
$sdkPackages
|
||||
$wixPackages
|
||||
$wdkPackages
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user