Windows Installer Editor Reference
525
Custom Action Reference
Usage
Double-click the custom action and complete the dialog box:
z
Source URL
Enter the URL of the file to download, including the name of the file.
Example: http://www.site.com/readme.pdf.
z
Destination Directory
Specify the file path, including file name, on the destination computer where the file
should be downloaded. Example: [INSTALLDIR]readme.pdf.
z
Error Handling
Determine how errors in the download operation are handled.
Ignore Errors
The installation continues regardless of errors.
Abort Installation
The installation stops if the download operation cannot be completed.
z
Progress Bar Text
Enter the text to display in the progress bar during the download. Progress bar text
appears only if this custom action is in the Execute Deferred sequence. You cannot
enter properties or formatted text. The field length is limited to 64 characters and
two lines.
See also:
Launch Web Page
on page 531
Post Data to HTTP Server
on page 532
Guidelines for Custom Action Location
on page 505
End Statement
The End Statement action marks the end of an If action, which specifies conditions to
attach to an action or a set of actions. The End Statement action takes no parameters,
and double-clicking it in the Actions list immediately inserts it into the script above the
selected script line.
See also:
If Statement
on page 528
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.
For a tutorial that demonstrates this custom action, refer to the Getting Started Guide.
Usage
Double-click the custom action and complete the Details tab:
z
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.