09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 24: View Reference<br />

Define Setup Requirements and Actions View<br />

MSI DLL Custom Action Settings<br />

When you add a Windows Installer DLL (MSI DLL) custom action to your project in the Custom Actions<br />

view, you need to configure its settings.<br />

Table 24-54: Settings for MSI DLL Custom Actions<br />

Settings Description<br />

Source Location Specify where the file that is used for this custom action is located:<br />

• Browse File System—The file that is used for this custom action is on your<br />

system.<br />

• Installed with the Product—The file will be installed on the target system.<br />

Depending on which part of the installation, uninstallation, or maintenance you<br />

schedule the custom action, this option may not be available. For example, if you<br />

schedule the custom action for the Before File Transfer part of the installation—<br />

which occurs before the file has been installed on the target system—the Installed<br />

with the Product option is not available.<br />

File Name If you selected Browse File System in the Source Location setting, click the ellipsis<br />

button (...) in the File Name setting to browse to the DLL file that you want to use for the<br />

custom action. When you build your installation, this file is automatically incorporated<br />

into your installation. Although the custom action is run during installation, the file is<br />

removed following installation.<br />

If you selected Installed with the Product in the Source Location setting, click the ellipsis<br />

button (...) in the File Name setting to browse for the file from the list of files that have<br />

already been added to your project through the Files view. Files that are installed on the<br />

target system are launched from their destination on the target system.<br />

Function Name Enter the name of the entry-point function that you want to call from your Windows<br />

Installer DLL.<br />

Note that the function must be defined with the following signature:<br />

UINT __stdcall FunctionName (MSIHANDLE hInstall) {...}<br />

The function name can vary; however, the return type, calling convention, and single<br />

parameter must use the types that are specified in the aforementioned signature. The<br />

MSIHANDLE data type that is used in the function signature is a handle to the running<br />

installation.<br />

In-Script Execution Select the iteration of the sequence that should trigger the selected custom action. For<br />

detailed information about each option, see Action Execution Options.<br />

Note that this setting does not apply to some sequences. For example, if you add a<br />

custom action under After Initialization (before first dialog), the action will be<br />

scheduled for immediate execution; it cannot be scheduled for deferred, rollback, or<br />

commit execution.<br />

Wait For Action Specify whether you want the installation, uninstallation, or maintenance to wait until the<br />

custom action exists before proceeding with the rest of the installation.<br />

If you select No, the installation, uninstallation, or maintenance continues while your<br />

custom action runs.<br />

570 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!