Symantec WISESCRIPT PACKAGE EDITOR 7.0 SP2 - FOR WISE INSTALLATION STUDIO V1.0 Installation Manual page 107

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

Advertisement

WiseScript Package Editor Reference
13. When you finish editing the dialog box, select File menu > Save Changes and exit.
To create a script for the action
For the Wait action, you write a very simple script. The script calls kernel32.dll, a
Windows system .DLL that contains a function that stops execution of the current
application for the specified number of milliseconds. To learn more about calling
Windows system .DLLs, see the Microsoft Developer Network (msdn.microsoft.com).
1.
From Event, select Mainline to return to the main part of your script.
The script should be blank.
2.
In the Actions list, double-click Call DLL Function.
The Call DLL Function dialog box appears.
3.
Complete the dialog box:
DLL Pathname
Enter %SYS32%\Kernel32.dll.
Function Name
Enter Sleep.
Call a function with variable parameter list
Mark this option and click Add.
Complete the DLL Parameter Settings dialog box that appears and click OK:
From Parameter Type, select dword.
From Value Source, select Constant.
In Constant Value, enter %WAIT_TIME%.
4.
Click OK on the DLL Parameter Settings dialog box.
5.
Click OK on the Call DLL Function dialog box.
6.
In Title (located above the Actions list), enter "Wait %WAIT_TIME% Milliseconds."
This determines how the script line looks in the script.
7.
Save the script.
It should already be named Wait.wse and should be in the Actions subdirectory of
this product's installation directory, or in the shared directory that is specified in
Preferences.
To test the action
1.
Close WiseScript Package Editor.
2.
Open WiseScript Package Editor and select File menu > New > Empty Project and
click OK.
An empty project contains a default script in Script Editor.
3.
In the Installation Script list, click the top line in the script.
4.
In the Actions list, double-click the Wait action.
The dialog box you created for your user-defined action appears.
5.
Enter 9000 and click OK.
A new script line appears in your script that looks like this:
Using Script Editor
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 7.0 sp2

Table of Contents