Relevance to get registry branch (substring of)

(imported topic written by SystemAdmin)

Hi.

I’m trying to write a relevance to get all DisplayVersion value of all registry key that begins with

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\xyz*

I crash my head on all office walls :O(

Starting from this:

if (exists key (first 74 of (“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\xyz”)) of registry) then (value “DisplayVersion” of key (first 74 of (“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\xyz”)) of registry as string) else (“NULL”)

(it’s surely wrong)

Any suggestions ?

(imported comment written by Lee Wei)

Here is an example statement for you.

(name of it, values "DisplayVersion" of it) of keys whose (name of it starts with "Micro") 
of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry

Or if you just want the DisplayVersion,

values "DisplayVersion" of keys whose (name of it starts with "Micro") 
of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry

Lee Wei

(imported comment written by SystemAdmin)

Thanks Lee!!

Very useful!