Answer
To get an installer property inside a .NET installer class custom action, you must first define it in the installer class parameters list from Edit .NET Custom Action Properties Dialog. 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");
Setting installer properties from a .NET installer class custom
action is unfortunately not supported.