InstallAware for Windows Installer
 

Check Registry

This command checks for the existence of a registry key or value. If the key or value exists, the function returns the associated data. If the key or value does not exist, the function returns a specific error code. Check Registry is similar to Read Registry, except it returns error codes instead of empty values when the requested data does not exist.

Variable

Type the name of the variable to receive the read value or error condition. If the value/key exists, this variable will hold the actual data held in the value. If the value/key does not exist, this variable will hold one of the following specific error flags:

Value Meaning
UNKNOWN$TYPE The value exists, but is of an unknown type.
NO$VALUE The specified key exists, but the specified value does not exist.
NO$KEY The specified key does not exist.
READ$ERROR An error occured during the read operation (check access privileges).

Root

Select the root of the read operation using the drop down menu.

Key

Type the name of the key to check for or read from.

Value

Type the value to read or check for. Leave empty to test for the existence of the key itself (and read the default value if the key exists).

Target Computer (optional, leave empty for local computer)

To check on the local computer, leave this field empty. To check on a remote computer, enter the computer name in this field. The remote computer must have the Remote Registry service enabled and started.

 Notes

  • If you would rather receive an empty string when the requested value cannot be found, use the Read Registry command instead.