User Guide

519
Execute Program From Destination
This custom action calls an .EXE file that already resides on the destination computer.
Use it to call .EXE files that are common to all Windows computers, such as
notepad.exe. A tutorial demonstrates this custom action in the Wise for Windows
Installer Getting Started Guide.
Usage
Double-click the custom action and complete the Details tab:
! Custom Action Name
Enter a unique name that begins with a letter or underscore. It can contain numbers
and periods. It must not match the name of any Windows Installer standard action.
See Standard Actions Reference in the Windows Installer SDK Help.
! Working Directory
Using a non-bracketed Windows Installer directory property (Example: INSTALLDIR),
specify the working directory of the .EXE file to call. When the .EXE file is run on the
destination computer, its current working directory is set to the directory you specify
here. This must be set to a directory that can be specified with a Windows Installer
directory property, which are listed when you click Browse.
! EXE and Command Line
Using a bracketed Windows Installer directory property to specify location, enter the
full path to the .EXE file that exists on the destination computer. Example:
[INSTALLDIR]TextEditor\MyEditor.EXE. If the .EXE file is registered or is in the PATH
environment variable, you might not need to type the entire path. Example: To
specify Notepad, just type NOTEPAD.EXE, because it is in the PATH variable.
(Optional) To pass command line options to the .EXE file, enter them after the name
of the .EXE file. The command line options are executed in relation to the working
directory. Example: If you type INSTALLDIR in Working Directory, and type
NOTEPAD.EXE README.TXT in this field, the README.TXT file that is in INSTALLDIR
is opened.
Also see:
Guidelines for Custom Action Location on page 499
Using the Custom Action Properties Tab on page 534
Using the Custom Action Location Tab on page 532
Custom Action Type 34 in the Windows Installer SDK Help
Execute Program From Installation
This custom action stores an .EXE file in the Binary table of this installation file and calls
it during installation. During installation, the .EXE is extracted to a temporary directory,
is run, and is deleted. You can manage the file you specify from the Resources page,
which reflects the Binary table.
Usage
Double-click the custom action and complete the Details tab:
! Custom Action Name
Enter a unique name that begins with a letter or underscore. It can contain numbers
and periods. It must not match the name of any Windows Installer standard action.
See Standard Actions Reference in the Windows Installer SDK Help.