EasyManua.ls Logo

Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 - Creating a User-Defined Action

Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0
174 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WiseScript Editor Reference 28
Using Script Editor
Adding an Action to a Script on page 25
Creating a User-Defined Action
This procedure describes the general steps for creating a user defined action. It does not
contain details on what kind of action to create, or what to enter for the parts of the
user-defined action.
For an example of how to complete these details, see Creating a User-Defined Action:
Tutorial on page 29.
To create a user-defined action
1. Select File menu > New.
In Script Editor, you should see a completely empty script.
2. If your user-defined action includes a dialog box where you can enter options for the
action, create the dialog box.
a. From the Event drop-down list in Script Editor, select Exit.
b. Add a Custom Dialog action to the Exit script, and create your dialog box in the
Custom Dialog Editor.
See About the Custom Dialog Editor on page 119.
Note
To add a drop-down list on your custom dialog box that contains all the
WiseScript variables currently defined in this script, set the list to display the
compiler variable %_VAR_LIST_%. It contains all the non-compiler variables.
3. From Event, select Mainline.
The main script reappears.
4. Add script lines that perform the function of your user-defined script action.
This might be something as simple as a single line that calls a .DLL, or it could be a
complex set of script lines that perform an advanced function.
5. In Title, enter a combination of text and variables to define the format of the script
line.
Example: Your user-defined action displays an HTML file on the Web. In your action,
a dialog box asks for the URL to the file, and the URL is put in the variable
URL_PATH. In Title, you might enter: Display HTML File %URL_PATH%. When you
add your user-defined action to an installation script, the dialog box appears and
you enter www.sample.com/support.htm for the URL. The script line for your user-
defined action appears in the format you specified, except that it shows the
variable’s value instead of the variable name. It displays: Display HTML File
www.sample.com/support.htm.
6. Save the script file in the Actions subdirectory of this product’s installation directory,
or in the shared directory that is specified in Preferences.
Your new action does not appear in the appears in the Actions list in Script Editor
until you close and re-open WiseScript Editor.
7. Test the new user-defined action:
a. Close WiseScript Editor.

Table of Contents

Related product manuals