Core Function RegValueExists

From Sputnik Wiki
Jump to: navigation, search
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");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox