Creating A User-Defined Action: Tutorial - Symantec WISESCRIPT PACKAGE EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 Reference

Table of Contents

Advertisement

Creating a User-Defined Action: Tutorial

WiseScript Package Editor Reference
5.
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.
6.
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.
7.
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 Package Editor.
8.
Test the new user-defined action:
a.
Close WiseScript Package Editor.
b.
Open WiseScript Package Editor and select File menu > New > Empty Project.
c.
In Script Editor, double-click your user-defined action in the Actions list. If it
includes a dialog box, the dialog box opens. Complete the dialog box and click
OK.
d.
Save the project and click Test to test your script.
This tutorial guides you through the process of creating a user-defined action named
Wait. The Wait action contains a custom dialog box in which you can specify how many
milliseconds to pause the installation.
To create a new blank script for the action
1.
Select File menu > New.
The New Installation File dialog box appears.
2.
Select Blank Script and click OK.
If you see a message that the installation script is not compatible with Installation
Expert, click OK. In Script Editor, you should see a completely empty script.
3.
Select File menu > Save.
The Save As dialog box appears.
4.
Save the script file in the Actions subdirectory of this product's installation directory,
or in the shared directory that is specified in Preferences. Name the file Wait.
Your new action appears in the Actions list in Script Editor after you close and re-
open WiseScript Package Editor.
Using Script Editor
103

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 8.0

Table of Contents