Registry - Get Value Data

Copies the data from a Registry value into a variable.

Action ID:
Action Category:
Action List Syntax:

72
Registry
<<VARIABLE>> = Registry.GetValue (<<MAINKEY>>\<<SUBKEY>>, <<VALUE>>)

Settings

Variable name:

The variable that the Registry value's data will be stored in.

Main key

The main or "root" key where the registry value will exist. Choose from:

Sub key:

The path to the sub key that contains the Registry value.

Value name:

The name of the Registry value (in the sub key) to read from.

Note: use "(default)" if you want to read the default value for this Registry key.

Auto-expand

Select this option if you're retrieving a REG_EXPAND_SZ value and you want any environment variables in the value to be expanded before it's stored in the variable.

If this is option enabled, and the value turns out to be of type REG_EXPAND_SZ, the value will be expanded before it is stored in the variable.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_REGISTRY_GET_VALUE

MSG_ERR_REGISTRY_GET_VALUE_DATA
MSG_ERR__REGISTRY_VALUE_NOT_FOUND
<<MAINKEY>>\<<SUBKEY>>\<<VALUE>>

Examples

Expiring 30 days after running the first time

Storing information in the Registry