Execute Program; Execute Vbscript - Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 Reference

Table of Contents

Advertisement

Execute Program

Execute VBScript

WiseScript Editor Reference
This action runs another .EXE. The .EXE can be a file that is already installed on the
destination computer, a file you installed as part of the installation, or a file you provide
on a separate disk.
When a WiseScript is called by a Windows Installer installation, you can also use the
Execute Program custom actions in MSI Script in Windows Installer Editor.
If the .EXE you plan to execute is coded to pass back a return value, the resulting return
value is put into the variables %INSTALL_RESULT% and %PROCEXITCODE%. If the
.EXE passes back a return value, mark the Wait for Program to Exit check box.
To complete the dialog box
.EXE Path
Specify the full path to the program to run, including the program file name.
Example: %MAINDIR%\Application.exe
Command Line
Enter any command-line options to apply to the .EXE when it runs, as if you were
typing them in the Run dialog box.
Default Directory
Specify the directory that should be current when the .EXE file is executed. The
installation performs the equivalent of a Change Directory command (cd) before
running the .EXE. Click Browse and select a directory from your installation. You can
select from directories that you created using the Create Directory action.
See
Create Directory
Variables Added
List any variables created in the .EXE that are not present in the calling script.
Window Size
You can force the .EXE file to run in a maximized or a minimized window, or you can
let it run in its default window. Select Hidden to run the .EXE silently, which means
it runs minimized and its task is not shown on the task bar.
Wait for Program to Exit
Mark this to stop the installation while this program runs. The installation does not
resume until the program exits. Be sure to mark this if the .EXE returns a value to
the script. If the installation does not wait for the .EXE to exit, add the command-
line option -sms.
Note
This action uses the Windows ShellExecute call, which means that you can open
documents as well as applications. When the script opens a document, the associated
application starts.
The sample scripts FTPCopy.wse and Newdisk.wse use this action. For details on sample
scripts, see ScriptHelp.htm in the Samples subdirectory of this product's installation
directory.
This action lets you execute VBScripts from within a WiseScript. This greatly expands
the functionality of WiseScripts because you can use all the scripting capabilities of
on page 60.
WiseScript Actions
77

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript editor 8.0

Table of Contents