Version: 8
restore

Contents

Method

RegistryKeyExists

ModuleNativeServices
LibraryCore
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 NameShort Name
HKEY_CLASSES_ROOTHKCR
HKEY_CURRENT_CONFIGHKCC
HKEY_CURRENT_USERHKCU
HKEY_LOCAL_MACHINEHKLM
HKEY_USERSHKU

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

In TIMS