C# Custom Actions - 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!

kirankunnam
Posts: 10
Joined: Thu Sep 29, 2011 5:50 am

C# Custom Actions

Can any body tell how to get the values from installer to c# custom action code using session or any other steps. this is very urgent requirement. please help on this. i'm unable to get the values in c# customer action.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: C# Custom Actions

Hi,

If you are using a DTF Wix C# custom action you can follow the indications give by my colleagues in the following forum post:
http://www.advancedinstaller.com/forums ... =2&t=19751

If you are using a .NET Installer Class custom action then you can get the value of a property with the following code:

Code: Select all

Context.Parameters["YourProperty"]
You will also need to configure the custom action by adding the property "YourProperty" in the "Installer Class Parameters" list.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”