Finding Registry Keys and values

Here's how to iterate through the names and values of keys in the registry:

Q: (names of it, it) of values of key "HKLM\SOFTWARE\Microsoft\Windows
\CurrentVersion\Installer\UserData\S-1-5-18\Products\FAA9C0AB723160F34
BC943B9B48E7F04\Patches\30BCFA5611132E741BDE91D8B6B09CE6" of registry
A: MSI3, 1
A: State, 1
A: Uninstallable, 1
A: LUAEnabled, 0
A: PatchType, 1
A: Installed, 20110106
A: DisplayName, KB945140

A: MoreInfoURL, http://www.microsoft.com/

You can test for the existence of specific keys:

Q: exists value whose (name of it is "DisplayName") of key "HKEY_LOCAL_MACHINE
\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products
\FAA9C0AB723160F34BC943B9B48E7F04\Patches\30BCFA5611132E741BDE91D8B6B09CE6" 
of registry
A: True

And you can test for specific values of a key:

Q: exists value whose (name of it is "DisplayName" and it is "KB945140") of key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData
\S-1-5-18\Products\FAA9C0AB723160F34BC943B9B48E7F04\Patches\30BCFA5611132E741BDE
91D8B6B09CE6" of registry
A: True