mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 02:18:40 +08:00
Add WiX v3 to Windows 2022. (#4448)
Move WiX to tools and stop installing WiX Votive VSIX, which isn't needed for build.
This commit is contained in:
@@ -187,6 +187,12 @@ Describe "WebPlatformInstaller" -Skip:(Test-IsWin22) {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "WiX" {
|
||||
It "WiX directory exists" {
|
||||
$env:WIX | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Zstd" {
|
||||
It "zstd" {
|
||||
"zstd -V" | Should -ReturnZeroExitCode
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user