PDA

View Full Version : Request sample: Registry Key Eligibility Condition



Shuttledude
11-03-2011, 08:56 AM
For a Suite project type, can anyone provide the proper syntax to use on the "Registry Key" line of an "Eligibility Condition"?

I've tried this:

HKEY_LOCAL_MACHINE\MyKey\MySubKey

HKEY_LOCAL_MACHINE/MyKey/MySubKey

enclosing in double quotes

enclosing in brackets


But nothing works. I know the key exists, but I get a runtime error. I'm convinced my Registry Key syntax is wrong -- do I need curly brackets, angle brackets, single quotes?

Thanks for any information.

hidenori
11-03-2011, 11:04 AM
The syntax should be:

HKLM\MyKey\MySubKey


HKLM - HKEY_LOCAL_MACHINE
HKCU - HKEY_CURRENT_USER
HKCR - HKEY_CLASSES_ROOT
HKU - HKEY_USERS

Shuttledude
11-03-2011, 11:48 AM
Thanks! That fixed it! :)
Abbreviated "hive" names are what I needed.