How to Add Parameters to a Dll Function - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Seamoon
Posts: 4
Joined: Tue Sep 22, 2009 4:23 am

How to Add Parameters to a Dll Function

Hi,
I just want to create an "Attached Custom Installation" which would call a fuction from a Dll file.But I don't know how to write the parameters,such as an unicode sting, in the "Action Data" editbox.I tried to put the string directly in the editbox,but it doesn't work.Can you tell me please how to set a parameter with exact type properly?
Thanks!
Seamoon
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to Add Parameters to a Dll Function

Hello,

Please note that after setting the "Action Data", from within your DLL you must use the MsiGetProperty API to query for the value of "CustomActionData" property. Our guide on Developing a DLL for a serial number validation contains example code that demonstrates how to use the MsiGetProperty API to access the value of an Installer Property.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”