This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I pass numerics to MSI DLL in custom action?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 09, 2008
01:28 PM
How do I pass numerics to MSI DLL in custom action?
I still haven't gotten an answer to my question about returning strings in a standard DLL type custom action. I have found a work around though where I create a wrapper function with the MSI DLL signature to call the custom function. The wrappers use MsiSetProperty and MsiGetProperty to pass strings between the DLL and the installer.
That works for strings, but now I find I have some functions that take numeric parameters, e.g. handles. So how does one pass non-string values between between an MSI DLL and an installer?
That works for strings, but now I find I have some functions that take numeric parameters, e.g. handles. So how does one pass non-string values between between an MSI DLL and an installer?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 09, 2008
01:41 PM
As far as I know, your best bet is going to be to convert those numbers to string format and pass them in a property -- then convert them back to the desired type in the DLL. Most of my DLL CA's are designed to run in Deferrred or Commit context so I use 1 property (CustomActionData) for all of my parameters, regardless of type.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)