WiseScript Package Editor Reference
22
Chapter 3
Using Script Editor
This chapter includes the following topics:
z
About Script Editor
on page 22
z
The Script Editor Window
on page 22
z
Types of Scripts
on page 25
z
Adding an Action to a Script
on page 26
z
Editing Scripts
on page 26
z
About User-Defined Actions
on page 28
z
Using the Debug Commands
on page 111
z
Basic Scripting Concepts
on page 32
About Script Editor
Note
This documentation covers both WiseScript Package Editor and WiseScript Editor.
WiseScript Editor contains the same scripting interface as WiseScript Package Editor, but
it does not contain the Installation Expert interface or other installation development
tools. Therefore, some of the information in this document does not apply to WiseScript
Editor.
All WiseScript products contain the Script Editor scripting environment. The Script Editor
scripting environment consolidates numerous lines of code into predefined script
actions. You don’t need to memorize commands because Script Editor supports a point-
and-click method of scripting. The script you create is displayed in clear, English-like
statements. You compile the script, along with files and other resources, into an .EXE.
When the .EXE is run, the script runs, executing the actions that are specified in the
script.
In WiseScript Package Editor, every installation is driven by a script that specifies how to
display dialog boxes, edit the .INI files, add registry entries, and so on. The script
provides another way of looking at the installation you create in Installation Expert.
Script Editor lets you add advanced functionality to your installation and troubleshoot
your script with the built-in debugger.
(WiseScript Package Editor only) If you create a new installation by selecting Empty
Project on the New Installation File dialog box, Script Editor is populated with a default
script in which the basic elements of an installation are already configured. If you create
a new installation by selecting Blank Script on the New Installation File dialog box,
Script Editor is empty. If you start from a blank script and then try to switch to
Installation Expert, you see a warning that the script must be converted.
See
Switching Between Installation Expert and Script Editor
on page 19.
(WiseScript Package Editor only) Some lines in the script correspond to options on pages
in Installation Expert because those options generate script lines. (Example: On the