RegisterUserDefinedAction

Register script for user-defined task on client

Definition

With this command you can register a script which can be used to execute user-defined tasks on the client.

Settings

  • User-defined task:
    Enter a name for the user-defined task.
  • Script file:
    Enter the name of the script. To be able to execute the script, it has to be available on the client.

Example:

Here, the InstallFile command is used to copy the TerminateInstallerRun.vbsscript to the client. The RegisterUserDefinedAction task (Registered actions for user-defined client tasks) registers the Skript '%NiBinDir%\UserDefinedActions\TerminateInstallerRun.vbs' script with the name 'TerminateInstallerRun'. Then the script can be executed on the client.

The script is not only registered in the Registry but also in the computer object's properties (in Client Information).