Delete Data from Registry Action

image\Actions_Storage_Registry_Delete.jpg

The Delete Data from Registry action allows you to delete a Label entry (both the label name and its contents) from the current publication’s Windows Registry entry.

Note:
This action can only be used if you have previously created a registry entry using the Write Data to Registry action – in this action you will have created a Label name.

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

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

Setting up the Delete Data from Registry Action:

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

2. Click on the Label box to specify the name of the label that you want to delete.

Note:
The label must be the same as a label you previously named in the Write Data to Registry action. This will delete both the label name and the contents contained in the label. However, if you have previously used a Read Data from Registry action specifying the same label name, the variable to which the data was saved will still contain the data.

3. Select either the current user only or all users option depending on how you originally created the registry entry with the Write Data to Registry action.

Note:
For example, if you originally wrote to the registry with the all users option selected, you must select the all users options here.

4. 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 Write Data to Registry action