Installed Application Relevance

Hello All

I’ve used the following relevance to find application installed and has been working fine for the installed application how ever the result for not installed application is not correct.

unique values of ((if exists value "DisplayName" of it then value "DisplayName" of it as string & " | " & (if exists value "DisplayVersion" of it then value "DisplayVersion" of it as string as version as string else "<N/A>") else ("Not Installed" as string)) of keys whose (((it contains "applicationName")) of (value "DisplayName" of it as string as lowercase)) of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of it) of (if x64 of operating system then (x64 registry;x32 registry) else registry)

returns : [blank]

I was expecting the “not installed” string

Any assistance would be greatly appreciated.

Thanks
nor.e

This relevance seems to be based upon the IBM relevance in one of their analyses. It is overly complicated and could be much better.

This part won’t work on 64bit OSes.


Try this:

exists keys whose( exists (it as string as lowercase) whose(it contains "applicationname") of value "DisplayName" of it) of keys "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (x64 registries;x32 registries)
1 Like

Thanks jgstew I will give this a try

1 Like