Registry - Create key

Declaration

<AMREGISTRY KEY="text" />

Related Topics   

Description

Creates a key in the registry. Multiple levels can be specified. Any keys that do not exist will be created.

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

Commonly used to create a registry key in order to set a name/value pair on that key in subsequent steps using the Registery - Create value activity.

Parameters

General

Property Type Required Default Markup Description
Registry key Text Yes (Empty) KEY="HKEY_CURRENT_USER\Software\Fortra\Automate Desktop\AMSERVICES" The full registry path of the key to create, beginning with a valid registry root, such as "HKEY_CURRENT_USER".

Description

Error Causes

On Error

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 adds a registry key.

Copy
<AMREGISTRY KEY="HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\<Automate Desktop or Automate> <product version number>\TaskService\Agent" />