Hi,
I’m trying to get some info for an analysis using the following syntax, which works everywhere else.
value “DisplayVersion” of key whose (value “Publisher” of it as string equals “Environmental Systems Research Institute, Inc.”) of key “HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall” of native registry
QnA reports the following…
A: 10.6.8321
E: Singular expression refers to non-unique object.
I’ve pluralized all of the key and value objects in the syntax with no change. I’ve changed “DisplayVersion” to something else I am not taking for duplicate. Not sure what else to try.
Followed along here: Analysis - singular expression refers to non-unique object
Thanks
Try the following:
(values "DisplayVersion" of it) of keys whose (value "Publisher" of it equals "Environmental Systems Research Institute, Inc.") of keys "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registry; x64 registry)
Nice! Thanks Wilson! I get a double output, but I can work with that.
if the values are the same,
try…
unique values of (values “DisplayVersion” of it) of keys whose (value “Publisher” of it equals “Environmental Systems Research Institute, Inc.”) of keys “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of (x32 registry; x64 registry)
The operator “unique values” is not defined.
…was the return.
Try
unique values of (values “DisplayVersion” of it as string)