Skip to main content

1E 8.1 (on-premises)

NativeServices.RegistryValueExists

Method

RegistryValueExists

Module

NativeServices

Library

Core

Action

Test whether a registry value exists.

Parameters

Hive (string): The registry hive which has to match one of the following long or short names, ignoring case:

Long Name

Short Name

HKEY_CLASSES_ROOT

HKCR

HKEY_CURRENT_CONFIG

HKCC

HKEY_CURRENT_USER

HKCU

HKEY_LOCAL_MACHINE

HKLM

HKEY_USERS

HKU

Subkey (string): The registry key to look for.

Name (string): The name of the registry value to look for under the key.

Return values

Exists (boolean): Whether the value exists or not.

Example

NativeServices.RegistryValueExists(Hive:"HKLM", Subkey:"software\\vendor\\test", Name:"value9");

Platforms

  • Windows

Notes