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: 2792
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”