Registry - Delete Value
Declaration
<AMREGISTRY ACTIVITY="delete_value" KEY="text" VALUE="text" />
Description: Deletes a registry value located in the registry key specified.
Practical Usage
Used to delete an unwanted or unused registry value.
General Parameters
Property |
Type |
Required |
Default |
Markup |
Description |
---|---|---|---|---|---|
Registry key |
Text |
Yes |
(Empty) |
KEY="HKEY_CURRENT_USER\Software \NetAuto\AutoMate\\AMSERVICES" |
The full registry path of the key, beginning with a valid registry root, that contains the value to delete. Click the folder icon to use the Registry Viewer to easily navigate to the desired key. |
Value name |
Text |
Yes |
(Empty) |
VALUE="theValuetoDelete" |
The name of the value to delete. |
Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.
Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)
On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)
Examples
The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.
Description: Delete value "bogusValue" in key "HKEY_CURRENT_USER\Software\AutoMate\BogusKey".
<AMREGISTRY ACTIVITY="delete_value" KEY="HKEY_CURRENT_USER\Software\ AutoMate\BogusKey" VALUE="bogusValue" />