[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

@@ -1,15 +1,15 @@
Describe "Wix" -Skip:(Test-IsWin22) {
Describe "Wix" {
BeforeAll {
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
$installedApplications = Get-ItemProperty -Path $regKey
$version = ($installedApplications | Where-Object { $_.DisplayName -and $_.DisplayName.toLower().Contains("wix") } | Select-Object -First 1).DisplayVersion
$version = ($installedApplications | Where-Object { $_.BundleCachePath -imatch ".*\\WiX\d*\.exe$" } | Select-Object -First 1).DisplayName
}
It "Wix Toolset version from registry" {
$version | Should -Not -BeNullOrEmpty
}
It "Wix Toolset version from system" {
It "Wix Toolset version from system" -Skip:(Test-IsWin22) {
if (Test-IsWin19)
{
$exVersion = Get-VSExtensionVersion -packageName "WixToolset.VisualStudioExtension.Dev16"