Web Deployment Project / Setup Project and editable web.config

Last post 05-23-2007 1:41 PM by grashley. 1 replies.

Sort Posts:

  • Web Deployment Project / Setup Project and editable web.config

    11-14-2006, 8:01 AM

    I'm working on an installer for a website. The Installer will prompt the user for the web settings such as as various AppSettings. How would you recommend implementing this? Below I describe my initial thoughts but they seem over complicated !!!!

     

    My first idea is to created the Web Deployment Project and create a web.config section overwrite file, and then using it in the usual manner to overwrite the web.config appSettings section at installation time.

    Property Pages->Deployment section to "appsettings=appsettings.config"

    Then to make this appsettings.config file editable by a Custom Action, create a Custom Action and add some TextFields and apply user data to the appsettings.config file.

     Then add this Custom Action to the Setup Project.

    this should result in the following scenario, the insaller appears, user enters data for the appSettings Values, these are written to the appsettings.config file, this file is then applied to the websites web.config and overwrites the appSettings.

     

    This does seem like alot of work for something so small.. Is there another way???


     

     


     

    http://learnerps-dotnet.blogspot.com
  • Re: Web Deployment Project / Setup Project and editable web.config

    05-23-2007, 1:41 PM
    • Loading...
    • grashley
    • Joined on 05-22-2007, 6:45 PM
    • Posts 3

    CustomAction in Setup and Deployment projects won't work if you're updating many sections in web.config as number of input fields you can show is limited to two dialog boxes with 3 inputs. 

     

    If you're updating lot of sections like we do, we're right now looking at rolling-out a windows application and launch this as part of the installation so that

    end-user can udpate the varous sections.  Have you got a better idea or easy way of accomplishing the same?

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter