Revert "Add WiX v3 to Windows 2022. (#4448)" (#4604)

This reverts commit 4672cb208d.
This commit is contained in:
Mikhail Koliada
2021-11-26 20:37:33 +03:00
committed by GitHub
parent 978ab79564
commit 3063eac712
7 changed files with 59 additions and 15 deletions

View File

@@ -182,12 +182,6 @@ Describe "WebPlatformInstaller" -Skip:(Test-IsWin22) {
}
}
Describe "WiX" {
It "WiX directory exists" {
$env:WIX | Should -Exist
}
}
Describe "Zstd" {
It "zstd" {
"zstd -V" | Should -ReturnZeroExitCode

View File

@@ -0,0 +1,23 @@
Describe "Wix" -Skip:(Test-IsWin22) {
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
}
It "Wix Toolset version from registry" {
$version | Should -Not -BeNullOrEmpty
}
It "Wix Toolset version from system" {
if (Test-IsWin19)
{
$exVersion = Get-VSExtensionVersion -packageName "WixToolset.VisualStudioExtension.Dev16"
}
else
{
$exVersion = Get-VSExtensionVersion -packageName "WixToolset.VisualStudioExtension.Dev15"
}
$exVersion | Should -Not -BeNullOrEmpty
}
}