[Windows] Add WiX tool for Windows 2022 (#4624)

This commit is contained in:
Nikolay Frolov
2021-11-29 18:54:51 +03:00
committed by GitHub
parent 340b210bd1
commit 884d3e799d
6 changed files with 17 additions and 18 deletions

View File

@@ -161,6 +161,12 @@ function Get-WinAppDriver {
return "WinAppDriver $winAppDriverVersion"
}
function Get-WixVersion {
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
$installedApplications = Get-ItemProperty -Path $regKey
return ($installedApplications | Where-Object { $_.BundleCachePath -imatch ".*\\WiX\d*\.exe$" } | Select-Object -First 1).DisplayName
}
function Get-ZstdVersion {
$(zstd --version) -match "v(?<version>\d+\.\d+\.\d+)" | Out-Null
$zstdVersion = $Matches.Version