title: How to execute application code during this application installation in InstallShield 2016 Premier Edition (21-days trial)?
body: <p>I create now Windows installation project (ISM) of my C# WPF Prism MVVM modular application. I use for it InstallShield 2016 Premier (21-days trial). In my C# WPF application I have Properties.Settings.Default flag called IsFirstRunAfterInstallation. The type of this flag is bool. I need that this flag <strong>must be set to true during the installation process</strong>. After completion of the installation when the application is run first time, IsFirstRunAfterInstallation flag is checked as the following:</p>
  
  <pre><code>if (My_assembly_name.Properties.Settings.Default.IsFirstRunAfterInstallation)
  {
      // do some actions here that must be done when application runs first time after its installation.
      . . . . . . . . . . . . . . .
      My_assembly_name.Properties.Settings.Default.IsFirstRunAfterInstallation = false;
      My_assembly_name.Properties.Settings.Default.Save();
  }
  </code></pre>
  
  <p>And if IsFirstRunAfterInstallation flag is <em>tru</em>e, some C# code that is needed to perform when the application runs first time will be executed (as you can see above). So I need that IsFirstRunAfterInstallation flag is set to <em>true</em> like the folowing:</p>
  
  <pre><code> My_assembly_name.Properties.Settings.Default.IsFirstRunAfterInstallation = true;
   My_assembly_name.Properties.Settings.Default.Save();
  </code></pre>
  
  <p>during each installation of my application on customer computer and is checked after the installation when the application runs first time. So I have the followin question: How to execute application code during the application installation using InstallShield 2016 Premier Edition (21-days trial)?</p>