HKEYCURRENTROOTKEY
InstallShield 2020 » 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:
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
Working with Registry Functions