cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
CrookedNose
Level 3

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?
Labels (1)
0 Kudos
(1) Reply
schmoli
Level 6

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.
0 Kudos