WiseScript Editor Reference
24
Using Script Editor
To edit an action group
1. Click the title bar of the action group.
You cannot edit or remove the All Items group.
2. Right-click below the action group title bar and select Add/Remove Items.
The Select Items for Group dialog box appears.
3. Add, delete, or move group items and click OK.
You can customize the Actions list further by creating user-defined actions.
See
About User-Defined Actions
on page 27.
Types of Scripts
In Script Editor, you can edit the following scripts:
Event Scripts
Event scripts handle events. (Example: The end user cancels the installation.) You can
select from the Event drop-down list and edit:
z
Mainline
The primary script that’s executed during the normal installation process. It
contains placeholders for Cancel and Exit scripts. When you open a script, that script
is considered the “main installation script,” and is on the first tab below the
installation script.
z
Exit
The script that’s executed when the installation is complete, or when an Exit
Installation script command is executed. If you create a user-defined action, you
store its custom dialog box here.
See
Creating a User-Defined Action
on page 28.
z
Cancel
The script that’s executed when the end user cancels the installation. Because some
files might already be installed when the end user cancels, the Cancel script
contains the include script, rollback.wse, which returns the destination computer to
its pre-installation state.
Include Scripts
Include scripts are added to an installation with an Include Script action.
See
Include Script
on page 91.
Scripts can be included either in the main installation script or in other include scripts. At
run time, include scripts are run when the Include Script action that references them is
encountered. For each Include Script action in a script, a new tab appears at the bottom
of the Installation Script pane.
Include scripts can help save time in developing installations, because you can develop a
library of WiseScripts that perform very specific functions. You can re-use these
specialized scripts in future installations and easily share them with colleagues.
VBScripts
VBScripts are added to an installation with an Execute VBScript action.