Modifies the Registry.
Action ID: 17
Action Category: Registry
The action to perform on the Registry:
Create Key - Creates a new key in the Registry.
Delete Key - Deletes a key and all of its sub keys and values from the Registry.
Set Value - Sets a value in a Registry key.
Delete Value - Deletes a value from a Registry key.
The main or "root" key to modify.
The sub key to modify.
The name of the Registry value to modify.
The type of Registry value to write. Choose from REG_BINARY, REG_DWORD, REG_EXPAND_SZ, REG_MULTI_SZ, REG_SZ.
The data to write to the Registry value.
Note: If you are using REG_BINARY, you must enter the data as two-character hex values separated by spaces. For example, "A2 FF 00 B6". If you are using REG_MULTI_SZ, separate strings with the "|" symbol. For example, "Value 1|Value 2|Value 3".
Value |
Simple Message |
Verbose Message |
0 (OK) |
|
|
1 |
Could not modify the Registry. |
Could not create key. |
2 |
Could not modify the Registry. |
Could not delete key. |
3 |
Could not modify the Registry. |
Could not set value. |
4 |
Could not modify the Registry. |
Could not delete value. |
5 |
Could not modify the Registry. |
Could not open key. |
In this example we will create a Registry key that tells the system to run "My Program.exe" whenever the system is rebooted.
Registry Action: Set Value
Main Key: HKEY_LOCAL_MACHINE
Sub Key: Software\Microsoft\Windows\CurrentVersion\Run
Value name: My Program
Value type: REG_SZ
Value data: %AppDir%\My
Program.exe
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab