How to get installer properties in .Net Installer Class Custom Actions?

ImportantThe following article uses options that are available starting with the Professional edition and project type.

To get an installer property inside a .NET installer class custom action, you must first define it in the installer class parameters list. After defining the property, you can use the following syntax to reference it inside the custom action:

Context.Parameters["YourProperty"]

For example, the following .NET code outputs an installer property in a message box:

MessageBox.Show(Context.Parameters["YourProperty"], "YourProperty value");

NoteSetting installer properties from a .NET installer class custom action is unfortunately not supported.