Passing Parameters to a DLL File Function in a Custom Action
InstallShield 2022
Project:This information applies to the following project types:
• | Basic MSI |
• | InstallScript MSI |
There are a number of reasons why you might pass a parameter to a function in a custom action. For example, you might want to pass a URL for Web registration or the UserName property for a custom user interface. However, Windows Installer does not directly support passing parameters to DLL file functions.
The entry-point function for a Windows Installer DLL file can have only one argument, which is the handle to the database. To learn about a suggestion for passing parameters to a DLL file written for Windows Installer, see Calling Functions in Windows Installer DLL Files.
To accomplish this in InstallShield:
1. | In the Custom Wizard’s Action Type panel, select Call a function in a standard dynamic-link library. |
2. | In the Function Definition panel, specify the parameters that you want InstallShield to pass to the function. |