Write Registry
The Write Registry command records information to the system registry.
Root
Pick the root of the registry where the keys and values should be written to.
Key
Type the full key path.
Value
Type the value name to record. Leave empty to set the default value, which is always a string.
Data
Provide the actual data that will be recorded.
String
Writes the value in the data field to the registry as a string.
Integer
Writes the value in the data field to the registry as an integer.
Binary
Writes the value in the data field to the registry as a binary value.
Expand String
Writes the value in the data field to the registry as an expand string value.
Multi String (append)
Writes the value in the data field to the registry as a multi line string, adding the new value in the last position of the multi line value.
Multi String (prepend)
Writes the value in the data field to the registry as a multi line string, adding the new value in the first position of the multi line value.
Permanent
Check this field to never remove a registry entry once it has been recorded using this command. The registry entry will survive uninstalling the product, or changing the installed feature set.
Target Computer (optional, Native Engine only)
To write to the local computer, leave this field empty. To write to a remote computer, enter the computer name in this field. The remote computer must have the Remote Registry service enabled and started.
While variables are allowed in this field, the InstallAware setup compiler will NOT generate any MSI database information for this command when any literal or variable has been entered in this field. This is because Windows Installer does not natively support writing to remote registries, and only the InstallAware Native Engine offers this functionality. When specifying any value in this field, ensure to use the Native Engine as the command will be ignored by the Windows Installer engine.
Notes
- When recording binary values, enter values into the data field in the form 0F. That is, values should be in hexadecimal notation, be provided as plain strings, and not include any non-hexadecimal characters in the entire data field.
- When recording multi string values, if you are writing the first value of the multi string value, you may choose either of the append or prepend choices.
- When running setup in 64 bit installation mode, if you need to make changes to the registry for 32 bit programs, please refer to the instructions in the notes section of the Set 64 Bit Mode command.