How to access session property from custom action c++ dll - 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!

ymtjia
Posts: 8
Joined: Thu Nov 01, 2007 1:12 am

How to access session property from custom action c++ dll

Hi,

I have written a c++ dll, and would like to access a session property (the target directory). How do I do that?

thank you.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

To do that you can use MsiGetProperty function, Read more about this here:
http://msdn2.microsoft.com/en-us/library/aa370134.aspx

The installation folder is given by the APPDIR property.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”