DLL Custom Actions

InstallShield 2012 Spring Express Edition

If you need to perform an action in your installation that is not natively supported by InstallShield or the Windows Installer service, you can create a custom action that calls a function from a .dll file. This .dll file can perform any function that you require, such as verifying a serial number.

The first step in creating a custom action that calls a DLL function is to write the DLL. There are two function prototypes that you can use to write your custom action:

Classic DLL custom action function prototype—The prototype in this type of DLL must follow the same format that was used in early versions of InstallShield Express.
New DLL custom action function prototype—The prototype in this type of DLL uses the same signature that is required for MSI DLL custom actions. If you want to use this type of signature for a new custom action that you are adding to your project, it is recommended that you use an MSI DLL custom action instead of a standard DLL, since an MSI DLL action offers more flexible scheduling options.

Once your DLL is ready, you must design a custom action to call the entry-point function. To learn how to create the custom action, see Adding a DLL Custom Action to Your Project.