BeforeAction script in Set Registry Value

 How do I dynamically set Registry Root and Registry Value Type?

For type, I tried:

  Action.RegValType = TRegValueType.rtString;

But I get an error that TRegValueType is undefined.

For the Registry Root, I couldn't find what i should set Action.RegRoot to.

Thanks

 

 

Hi Nelson

Action.RegValType = rtString

There is code completion for this property, unfortunately I discovered that some of the constants were not registered with the script engine.

For RegRoot, the constants are :

HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG

e.g : Action.RegRoot = HKEY_LOCAL_MACHINE

We’ll have a new build out later today with the RegValType constants registered.