(imported topic written by SystemAdmin)
Hey all. I have modified the retrieved property that gathers installed applications for the analysis “Application information (Windows)” to also gather install date, uninstall and silent uninstall strings. Below is the relevance for the rp. Now when I run this in QnA I get all information however, at the end of the list I get the dreaded “Singular expression refers to nonexistant object” message. Do I need to worry about this from a reporting standpoint? Is there anything I can wrap around this to remove the message? Has anyone come up with a better solution to gather all of the software inventory from a Windows machine?
As always, any help is appreciated.
Thanks,
Paul Sisk
Retrieved Property relevance statement:
(if (exists value “DisplayName” of it AND (length of (value “DisplayName” of it as string) > 0) AND (number of substrings " " of (value “DisplayName” of it as string) < (length of (value “DisplayName” of it as string)))) then (value “DisplayName” of it as string & (if (exists value “InstallDate” of it) then (" ; " & value “InstallDate” of it as string) else (" ; NoInstallDate")) & (if (exists value “DisplayVersion” of it) then (" ; " & value “DisplayVersion” of it as string) else (" ; NoDisplayVersion")) & (if (exists value “InstallSource” of it) then (" ; " & value “InstallSource” of it as string) else (" ; NoInstallSource")) & (if (not exists value “UninstallString” of it) then (if (exists value “SilentUninstallString” of it) then (" ; " & value “SilentUninstallString” of it as string) else " ; NoSilentUninstallString") else (" ; " & value “UninstallString” of it as string))) else (name of it & (if (exists value “DisplayVersion” of it) then (" ; " & value “DisplayVersion” of it as string) else (“NoDisplayVersion”)))) of keys whose (exists value “UninstallString” of it) of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry