Windows Installer Editor Reference
473
Custom Action Reference
Tips
z
If this custom action is within a condition, the message is displayed only when the
specified condition is met.
Example: You could display a message if end users marked a check box on a dialog
box. You would associate the check box with a property and then set up a condition
to check if the property was true.
To create a condition, use an If Statement.
See
If Statement
on page 477.
z
You can use formatted text strings, such as bracketed property names, in Message
Title or Message Text. However, formatted text strings only work in the Execute
Immediate or User Interface sequences.
See
Guidelines for Custom Action Location
on page 454 and Formatted in the
Windows Installer SDK Help.
Usage
Double-click the custom action and complete the dialog box:
z
Message Title
Enter text to be displayed in the title bar of the message.
z
Message Text
Enter the text to be displayed in the message dialog box. Press Ctrl+Enter to add
line breaks in the displayed text.
z
Message Icon
Select an appropriate icon for your message dialog box.
See also:
Remark
on page 482
Guidelines for Custom Action Conditions
on page 455
Download File From Internet
This custom action downloads a file from the Internet.
Tips
z
If you place this action in the User Interface or Execute Immediate sequences, you
can use formatted text strings, such as [INSTALLDIR], in the Source URL and
Destination Directory fields.
See Formatted in the Windows Installer SDK Help.
z
If you place this action in the User Interface or Execute Immediate sequences, you
cannot display progress bar text.
z
If you place this action in the Execute Deferred sequence, you must hard-code the
destination and source paths.
z
Downloaded files are not uninstalled when the product is uninstalled because
Windows Installer only uninstalls files installed with standard actions, not custom
actions.