Core Function RegValueExists
From Sputnik Wiki
RegValueExists( <key>, <value> )
Contents |
Description
Check if a key value in the registry.
Parameters
key
The registry key to read.
value
The registry value to check for.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
A registry key must start with:
"HKEY_LOCAL_MACHINE" or "HKLM"
"HKEY_USERS" or "HKU"
"HKEY_CURRENT_USER" or "HKCU"
"HKEY_CLASSES_ROOT" or "HKCR"
"HKEY_CURRENT_CONFIG" or "HKCC"
Example
if(RegValueExists(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @"AdobeBridge")) { println("It does exist"); } else { println("It does not exist"); }