title: web.config changes in installer and based on targeted environment
body: <p>Need some assistance with my Visual Studio projects and in particular with release process. To release my web application, I use a web deployment project to deploy my web application.</p>
  
  <p>I have split my connection strings and app settings into a seperate config files, with a config file for each environment I might be creating the msi for eg. dev, qa, staging, prod.</p>
  
  <p>The config files are chosen based upon it being set in the web.config.</p>
  
  <p>So I have the following list of tasks I would like to do on deployment time:</p>
  
  <ul>
  <li>Ensure that debuging set to false in the web.config.</li>
  <li>When I go to install the MSI in the particular environment, I would like the option in the installer to be able to select the environment I am installing the MSI to, and the web.config is altered to point at the config files for that enviroment.</li>
  </ul>
  
  <p>How can I achieve the above? Can I create custom actions in the MSI installer and if so, how? Should I look at introducing a MsBuild task to ensure I am releasing with debugging turned off. </p>
  
  <p>Would like some information on the above please.</p>