09.12.2012 Views

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

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 />

Table 24-55: Settings for DLL Custom Actions (cont.)<br />

Settings Description<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 function you want to call from your DLL. Although your function<br />

must accept parameters, you do need not to list the parameters in this setting. For<br />

example, if your function has the following prototype, type MyFunction for the function<br />

name:<br />

CHAR WINAPI MyFunction(HWND, LPSTR, LPSTR, LPSTR, LPSTR);<br />

For more information, see Classic DLL Custom Action Function Prototype or New DLL<br />

Custom Action Function Prototype.<br />

Function Signature Select the format that your DLL function uses. Available options are:<br />

• Classic—This format requires a precise prototype for the entry-point function. This<br />

format was used in early versions of <strong>InstallShield</strong> <strong>Express</strong>. For more information,<br />

see Classic DLL Custom Action Function Prototype.<br />

• New—This format enables you to get a handle to the .msi database that is currently<br />

running. Once you have a handle to the database, you can call any number of<br />

Windows Installer APIs. For more information, see New DLL Custom Action Function<br />

Prototype.<br />

Note that the prototype in this type of DLL uses the same signature that is required<br />

for MSI DLL custom actions. If you want to use this type of signature for a new<br />

custom action that you are adding to your project, it is recommended that you use<br />

an MSI DLL custom action instead of a standard DLL, since an MSI DLL action<br />

offers more flexible scheduling options. To learn more, see Windows Installer DLL<br />

Custom Actions.<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 />

Ignore Exit Code Specify whether you want the Windows Installer to ignore the return value of this custom<br />

action and continue the installation, uninstallation, or maintenance.<br />

572 ISE-1900-UG00 <strong>InstallShield</strong> <strong>2012</strong> <strong>Spring</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!