[Windows OS] Include Microsoft Game Development Kit (GDK) to image (#4097)

This commit is contained in:
Maksim Shilov
2021-09-20 13:06:52 +03:00
committed by GitHub
parent 9fe940e8a3
commit ebedfbc739
5 changed files with 38 additions and 0 deletions

View File

@@ -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 = @(
@{