Query to extract data from HKEY_USERS registry hive on Vista OS

(imported topic written by jclark91)

I have been using the following relevance query to obtain the version of an installed application on Win2K and WinXP operating systems:

If (exists value “Version” of key “Software\ISS\Proventia Desktop\Settings” of (key whose ((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@” ) of (it as string as lowercase) of value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it) of key “HKEY_USERS” of registry)) then (value “Version” of key “Software\ISS\Proventia Desktop\Settings” of (key whose ((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@” ) of (it as string as lowercase) of value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it) of key “HKEY_USERS” of registry)) as string else “Proventia not installed” as string

This query works quite well on Win2K & WinXP but does not work on Vista.

Can somebody show me an example of the relevance language that would allow me to extract the version info on a Vista system in a similar way. I am attaching a screenshot of the registry entry that I am trying to read with the above query.

The path to the key in the registry is as follows:

\HKEY_USERS\S-1-5-21-2293772975-2725006221-62487526-1000\Software\ISS\Proventia Desktop\Settings

The value I am trying to extract is: Version

Any help is welcome.