Sha256: 5bbc02c21050da28885ae478b4a0f29256c481b111742578bdad46d8859dc076

Contents?: true

Size: 310 Bytes

Versions: 55

Compression:

Stored size: 310 Bytes

Contents

function FindInstalledApplication
{
  param($appName, $appVersion)
  $selectionCriteria = "(Name like '$appName' or PackageName like '$appName') and InstallState = 5"
  if ($appVersion -ne $null) { $selectionCriteria += " and version = '$appVersion'"}
  Get-WmiObject Win32_Product -filter $selectionCriteria
}

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
serverspec-0.10.5 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.10.4 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.10.3 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.10.2 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.10.1 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.10.0 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.8 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.7 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.6 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.5 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.4 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.3 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.2 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.1 lib/serverspec/backend/powershell/support/find_installed_application.ps1
serverspec-0.9.0 lib/serverspec/backend/powershell/support/find_installed_application.ps1