Registry - Create value
Declaration
<AMREGISTRY ACTIVITY="write_value" KEY="text" VALUE="text" VALUEDATA="text" TYPE="text (options)" />
Description
Sets the specified name/value pair on the specified registry key.
WARNING: Incorrectly
editing the registry may severely damage your system. Do
not edit the Windows registry unless you are
confident about doing so.
Practical usage
Used to write a value and optional data to the registry. Necessary keys will be automatically created.
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Value type | Text (options) | Yes | string |
|
The registry data type to create. The available options are:
|
Registry key | Text | Yes | (Empty) |
|
The registry key (folder) in which to set the new value. Click the folder icon to open a standard registry viewer that you can use to navigate to the desired registry key. |
Value name | Text | Yes | (Empty) | SOURCE="C:\PDFFileName.pdf" | The
name of the registry value to create. NOTE: When you add a registry value to a registry key,
the new registry value name and data type are saved with default
data. |
Value data | Text | Yes | (Empty) | NEWPDF="C:\PDFFileName.pdf" | The registry value data to write. The Registry key and Value name must be specified along with this value for proper functionality. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task creates a value in the registry.
Copy
<AMREGISTRY ACTIVITY="write_value" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\<Automate Desktop or Automate> <product version number>\TaskService" VALUE="temp" VALUEDATA="theData" />