title: System.Configuration in a custom installer class
body: <p>I have a .NET 2.0 project winforms app. I have another setup installer project.</p>
  
  <p>I've added a custom installer class to the winforms app, that I want to pull some app configuration values to display/allow the user to change during the setup MSI running.</p>
  
  <p>I'm trying to use this example, as it's well documented and makes sense:
  <a href="http://raquila.com/software/configure-app-config-application-settings-during-msi-install/" rel="nofollow">http://raquila.com/software/configure-app-config-application-settings-during-msi-install/</a></p>
  
  <p>The probelm I'm running into is that "System.Configuration" is not giving me the "Configuration" object. I have the following code in place:</p>
  
  <pre><code>using System;
  using System.Collections;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Configuration.Install;
  using System.Configuration;
  
  
  namespace BadgeReader
  {
      [RunInstaller(true)]
      public partial class InstallerSettings : System.Configuration.Install.Installer
      {
          public InstallerSettings()
          {
              InitializeComponent();
          }
  
          public override void Install(System.Collections.IDictionary stateSaver)
          {
              base.Install(stateSaver);
  
              //get the custom settings
  
              //System.Diagnostics.Debugger.Break();
  
               System.Configuration
              //Configuration config = ConfigurationManager.OpenExeConfiguration(exePath);
          }
      }
  }
  </code></pre>
  
  <p>I'm trying to get the last commented line to work, and it's not working... I'm not sure what I'm doing wrong.</p>