public MsiSetupForm(string msiFile) { InitializeComponent(); session = new MyProductSetup(msiFile); session.InUiThread = this.InUIThread; session.ProgressChanged += session_ProgressChanged; session.ActionStarted += session_ActionStarted; session.SetupComplete += session_SetupComplete; UpdateLayout(); }