lib/specinfra/backend/powershell/support/find_installed_application.ps1 in specinfra-0.5.1 vs lib/specinfra/backend/powershell/support/find_installed_application.ps1 in specinfra-0.5.2

- old
+ new

@@ -10,12 +10,13 @@ { $keys = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*','HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*') } if ($appVersion -eq $null) { - $keys | Where-Object {$_.name -like $appName -or $_.PSChildName -like $appName} + @($keys | Where-Object {$_.DisplayName -like $appName -or $_.PSChildName -like $appName}).Length -gt 0 } else{ - $keys | Where-Object {$_.name -like $appName -or $_.PSChildName -like $appName } | Where-Object {$_.DisplayVersion -eq $appVersion} + @($keys | Where-Object {$_.DisplayName -like $appName -or $_.PSChildName -like $appName } | Where-Object {$_.DisplayVersion -eq $appVersion} ).Length -gt 0 } + }