private static bool PrepareApplicationData(PreConfigurationState preConfigurationState, out ApplicationData applicationData)
 {
   try
   {
     applicationData = Packager.GetDefaultApplicationData(preConfigurationState.InstallerExecutable);
   }
   catch (ArgumentException)
   {
     applicationData = null;
     return false;
   }
   if (preConfigurationState.ShowEngineConfigurationUtility)
   {
     var utility = new ApplicationConfigurationUtility(true);
     utility.LoadApplicationData(applicationData);
     utility.ShowDialog();
   }
   return true;
 }
 private void _btnConfigureApplication_Click(object sender, System.EventArgs e)
 {
   ApplicationConfigurationUtility frm = new ApplicationConfigurationUtility();
   frm.ShowDialog();
 }