Write Data to Registry Action

image\Actions_Storage_Registry_Write.jpg

The Write Data to Registry action allows you to write information contained in a variable (or directly in the Text field provided) to the Windows Registry.

Note:

As an alternative to writing to the Registry you can write to a text file using the Write to Disk Fileor Write Text to File actions.

The Storage menu also contains the following actions relevant to this action: Read data from the Registry; Delete data from Registry and Delete All Publication Data from Registry.

Setting up the Write Data to Registry Action:

1. Add the Write Data to Registry action to your trigger, as described in adding actions. The Write Data to Registry tab will automatically appear when you add the action.

2. Use the Variable option if you want to write information contained in a variable to the registry. Click on the down arrow to the right of the Variable option to select the name of the variable containing the information you want to store.

Note:
You can copy the contents of any variable into the disk file; this may be a single word, numbers or even several lines of text.

3. Click on the New… button if have not created the variable yet. This will open the New Variable dialog box. In the dialog box, type a new name for the variable and add the contents in the Value field.

Note:
If the information you want to add to a disk file is not stored in a variable already, you can create a new variable here and type the contents you want to add to the disk file ‘on the fly’.

4. Use the Text option if you want to write information you type directly into this box to the registry. Click on the radio button and then click inside the box and type in the data you want to store.

5. Click on the Label box and type the name of the label you want to store this information under. The label can be a mixture of uppercase and lowercase letters as well as numbers – it can also contain spaces.

Note:
Opus will automatically create a registry entry for you on the user’s computer. One registry is added per publication or per user (see Note in point 6 below). Within the registry, each bit of information is stored under a Label name. You can have as many labels as you like in the registry but each label only stores one bit of information (see Disk files vs. Windows Registry for more information).

6. Use the current users only option if you want to create a registry for each individual user.

Note:
On some computer platforms, such as Windows 2000, you have to login to the computer with a user name and password. This creates a separate registry for each user. If you select this option, the registry will be specific for this user, this means if another user logs onto the computer, the information contained in their registry can be different from other users.

7. Use the all users option if you want to create one registry entry for this publication.

Note:
This option will only create one registry entry for this publication that is accessible by all users who log on to the computer. This means that any changes made by the last user that affects the registry entries will affect the next user to use this publication.

8. Click on the Apply button to save your changes.

Note:
This action will only work for publications that you have published using the Create a Standalone Publication option in the Publish Wizard.

Related Topics:

Introducing the Storage Actions

Restrictions Reading and Writing Disk Files

Disk Files vs Windows Registry

the Read Data from Registry action