WiseScript Package Editor Reference
84
WiseScript Actions
appears. In the VBScript, you can call a COM object and then use the functions and
properties that are exposed by this object.
To call a COM object in a VBScript
1. Use the Execute VBScript action to add a VBScript to the WiseScript.
See
Execute VBScript
on page 78.
2. Click the tab for the VBScript that appears at the bottom of the Installation Script
pane.
The VBScript window appears.
3. Add a Call COM Object action.
The Call COM Object dialog box appears. The only required fields on this dialog box
are Creatable Object ProgID and Variable name. The other fields help you
identify an object’s ProgID.
Note
The Call COM Object dialog box only facilitates calling a COM object, it does not
guarantee that the information it accesses on your computer is correct.
4. To use TypeLib information to identify the object, click Select.
The Browse Typelib Information dialog box appears. It lists TypLib information for
all the objects registered on your computer.
5. Do one of the following:
For an object that is registered on your computer, select the TypeLib
information for the object.
For an object that is not registered on your computer, click Browse and locate
the file that contains the TypeLib information. TypeLib information for an
unregistered object does not help you identify the object’s ProgID, but it does
display a list of objects in the Objects field for the file you selected. This
information might help you identify the correct object.
The Call COM Object dialog box reappears.
6. If the desired object does not appear in the Object field, select it from the drop-
down list.
If a registered object has a ProgID, it will appear in Creatable Object ProgID. If
an object does not have a ProgID, you can not call that object. A ProgID consists of
the name of the application providing the object, followed by a period and the type
or class of the object. If an object is not registered, you must enter its ProgID in
Creatable Object ProgID.
7. In Variable name, enter a name for this object.
You use this name in the VBScript to access it methods and properties.
8. Click OK.
The script to call the selected object appears in the VBScript.
Exit Installation
This action exits the installation.