Sha256: 33f063ba629b173b5d8597dc4c3d5574f4ac0c2f5918545b36a9a741e9cf2e0c
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
function FindInstalledApplication { param($appName, $appVersion) if ((Get-WmiObject win32_operatingsystem).OSArchitecture -notlike '64-bit') { $keys= (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*') } else { $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} } else{ $keys | Where-Object {$_.name -like $appName -or $_.PSChildName -like $appName } | Where-Object {$_.DisplayVersion -eq $appVersion} } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specinfra-0.5.1 | lib/specinfra/backend/powershell/support/find_installed_application.ps1 |