mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* add windows2022 image template Co-authored-by: Aleksandr Chebotov <v-aleche@microsoft.com> Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Co-authored-by: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
24 lines
831 B
PowerShell
24 lines
831 B
PowerShell
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
|
|
}
|
|
}
|