Skip to main content

1E 8.1 (on-premises)

NativeServices.RegistryKeyExists

Method

RegistryKeyExists

Module

NativeServices

Library

Core

Action

Test whether a registry key 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.

Return values

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

Example

NativeServices.RegistryKeyExists(Hive:"HKLM", Subkey:"software\\vendor\\settings");

Platforms

  • Windows

Notes