HKEYCURRENTROOTKEY

InstallShield 2025 » InstallScript Language Reference

The value of this system variable is the root key that is used by the general registry-related functions. The system variable's possible values are the following:

HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG
HKEY_DYN_DATA

You can set the default root key by setting HKEYCURRENTROOTKEY equal to one of the preceding predefined constants, the predefined constant HKEY_USER_SELECTABLE, or the system variable HKEY_USER_SELECTABLE_AUTO.

Unlike RegDBGetDefaultRoot, the value of HKEYCURRENTROOTKEY is never HKEY_USER_SELECTABLE. If you most recently set the default root key by using HKEY_USER_SELECTABLE, the value of HKEYCURRENTROOTKEY is HKEY_LOCAL_MACHINE if the ALLUSERS system variable is non-zero or HKEY_CURRENT_USER if ALLUSERS is FALSE.

See Also