Dialog Box Script Examples - Symantec WISESCRIPT PACKAGE EDITOR 7.0 SP2 - FOR WISE INSTALLATION STUDIO V1.0 Installation Manual

Hide thumbs Also See for WISESCRIPT PACKAGE EDITOR 7.0 SP2 - FOR WISE INSTALLATION STUDIO V1.0:
Table of Contents

Advertisement

Dialog Box Script Examples

WiseScript Package Editor Reference
Set Control Attributes
on page 111
Set Control Text
on page 112
Set Current Control
on page 113
Set Variable
on page 114
While Statement
on page 117
To see an example of a dialog box script
1.
Open the sample script Event Handler.wse in the Samples subdirectory of this
product's installation directory.
2.
In Script Editor, double-click the Custom Dialog "Event Handler" script line.
The dialog box opens in the Custom Dialog Editor.
3.
Select View menu > Dialog Script Editor.
The script for the dialog box appears in the Dialog Script Editor.
How you might use a dialog box script:
Have the INIT event enable buttons on the current dialog box if the end user
answers a previous dialog box in a certain way. Check the variable containing the
value returned from the previous dialog box, then use one or more Set Control
Attributes script actions to enable buttons.
Have the INIT event disable certain buttons if they are not valid based on previously
chosen options.
Have the INIT event store the current amount of free memory in a static text
control, then set the dialog box to display the current amount of free memory in the
lower-left corner.
Have the UPDATE event enable the Next button on a wizard dialog box when a
password field contains the correct value. The UPDATE event is called whenever any
field or control is changed, and the variable associated with each field or control
contains its current value, suitable for testing in a script.
Have the VERIFY event check the contents of one or more fields on the dialog box
and reject the end user's entry if it is not valid. VERIFY is called when the end user
tries to exit the dialog box. Set the DLG_EVENT_TYPE variable to an empty string
within the handler to prevent the dialog box from closing. If all fields are correct, do
not change DLG_EVENT_TYPE.
Create a button on the dialog box that generates a custom event. Example: Create
an event called DISKSPACE, and set its handler to show the amount of free disk
space using a Display Message event.
Creating Custom Dialog Boxes
148

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 7.0 sp2

Table of Contents