set property from dialog

Aug 3, 2015 at 7:47 AM
I created a project from WinSharp Managed Setup - Custom Dialog template

On custom dialog user should choose a parent web site in combo box.
Also I have a property IISWEBSITE_NAME. How to set this property to selected item from dialog?

(I tried pass session into class constructor and set set property via session in SelectedIndexChanged event, but as a result combo box disappears from form at all )
Aug 3, 2015 at 12:04 PM
In your UI element event handler call:
MsiRuntime.Session[<prop_name>] = <prop_value>;