mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
[Windows OS] Include Microsoft Game Development Kit (GDK) to image (#4097)
This commit is contained in:
@@ -324,6 +324,13 @@ function Get-PipxVersion {
|
||||
return "Pipx $pipxVersion"
|
||||
}
|
||||
|
||||
function Get-GDKVersion {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$GDKRelease = $installedApplications | Where-Object DisplayName -match "Microsoft Game Development Kit"
|
||||
return "$($GDKRelease.DisplayName) $($GDKRelease.DisplayVersion)"
|
||||
}
|
||||
|
||||
function Build-PackageManagementEnvironmentTable {
|
||||
$envVariables = @(
|
||||
@{
|
||||
|
||||
Reference in New Issue
Block a user