Call Dll From Installation - Symantec WINDOWS INSTALLER EDITOR 8.0 Reference

Hide thumbs Also See for WINDOWS INSTALLER EDITOR 8.0:
Table of Contents

Advertisement

Call DLL From Installation

Windows Installer Editor Reference
In the Execute Immediate or User Interface sequences only, you can send Windows
Installer properties to the .DLL function as parameters. The property's current value is
passed to the function and, if the function changes that value, the property is updated
back in the installation. To send a property, set Value Source to Property and type or
select the property name in Property Name.
To create a parameter:
Double-click one of the Call Custom .DLL actions in MSI Script and click the Add button.
Then complete the DLL Parameter Details dialog box:
Parameter Type
This lists standard data types and two Windows Installer-specific items. Check the
.DLL function for its required parameter data types. The option MsiHandle to
Install gives you the handle hInstall, which is a handle to the running installation;
the option MsiHandle to Database gives you the handle hDatabase, which is a
handle to the running database. Some Windows Installer function calls and
database calls require these handles as parameters.
Value Source
A parameter's value can be set from a Windows Installer property, a constant, or a
constant with a NULL value. When you select a value source, the appropriate field
below becomes enabled.
Property Name
If you selected Property in Value Source, enter or select a Windows Installer
property here to send as a parameter. This only works in the Execute Immediate or
User Interface sequences.
Constant Value
If you selected Constant in Value Source, enter a constant value.
If you selected Constant with NULL value, the value of NULL is passed
regardless of the parameter type, so Not applicable is displayed for the
parameter type.
If you selected Formatted Constant in Value Source, enter a formatted text
string. This lets you pass the path of a file, feature, or directory to the custom
action. Example: To pass a file path, enter [#filekey] as the constant value. See
Formatted in the Windows Installer SDK Help.
See also:
Call Custom DLL From Destination
Call Custom DLL From Installation
Call Custom DLL From Installed Files
This custom action stores a .DLL file in the Binary table of this installation file and calls it
during installation. During installation, the .DLL is extracted to a temporary directory, is
called, and is deleted. It is not registered.
Tips
Manage the .DLL on the Resources page, which reflects the Binary table.
on page 461
on page 462
on page 463
Custom Action Reference
465

Advertisement

Table of Contents
loading

Table of Contents