Accessing properties from a deferred CA - 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!

berlin
Posts: 4
Joined: Wed Mar 18, 2009 4:14 pm

Accessing properties from a deferred CA

Given that MsiGetProperty() is useless within a deferred custom action, how do I access a property (such as APPDIR) from a deferred custom action? I see an "Action Data" field, which implies something that can be passed down the the C++ function in the attached DLL custom action but there is no explanation anywhere on what that is and how it is used.

Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Accessing properties from a deferred CA

Hi,

You can access your desired data from within your deferred custom action by using the Action Data field in your Custom Action's property pane.
- fill in the Action Data field with all the properties you want to pass to your deffered CA
- within your Custom Action, access the Action Data field by querrying for the CustomActionData property with the MsiGetProperty(...) function

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

Return to “Common Problems”