RegReadValue

Get Variable from Registry

Related Topics Link IconRelated Topics  

Definition

Use this command to read information from the registry.
In this command's dialog box you must specify the key and the value you want to read from the registry.

The value read from the registry will be stored in a user-defined, local variable and is valid for the complete installation package and for all other installation packages called by this specific installation package as well as all component packages of the installation package.

In case an error occurs when running this command, you can specify the option Stop script on error in the Script Editor. If the error actually occurs, the script stops, thus preventing subsequent errors, and the associated policy is shown as not compliant.
This also applies if you set the package property Error handling to Always terminate script on error (a default setting for new packages).

Settings

  • Key
    Specify the registry key you want to read from.
  • Value name
    Either the default value of the key or the name of a different value. If this is present on the workstation, it can be selected.
  • Variable name
    Enter the name of the variable omitting the % sign.