build web.config during deployment

Discussion in 'ASP .Net' started by Walter W, Aug 8, 2005.

  1. Walter W

    Walter W Guest

    hi,

    i need to deploy two asp.net web projects which together form one single
    solution.

    these two projects will be installed in different virtual directories.

    i could create two setup projects to include the primary output and
    content files from the each project. but how can i merge them into one
    ..msi file?

    also more importantly, how can i ask the user for sql server login
    details during set up? so that i can create the database and tables and
    also set the connection string in the web.config file?

    i did a google and it appears that i have to use some custom installer
    class. is there an easier way to do this?

    thanks for any advice.
     
    Walter W, Aug 8, 2005
    #1
    1. Advertising

  2. Walter W

    Clint Hill Guest

    Generally speaking, I think you would want to setup one project as a
    merge module to be used in the other.
    For the web.config part you could use a dialog box to ask for the values
    and then query the installer for them to "re-write" the web.config file.

    It is pretty complicated, and honestly, I don't really put the effort
    into this kind of setup, unless it is something that will be on CD. If
    this is an internal system and you can be there for the setup and
    config, nothing really beats XCOPY and notepad.

    Clint Hill
    H3O Software
    http://www.h3osoftware.com


    Walter W wrote:
    > hi,
    >
    > i need to deploy two asp.net web projects which together form one single
    > solution.
    >
    > these two projects will be installed in different virtual directories.
    >
    > i could create two setup projects to include the primary output and
    > content files from the each project. but how can i merge them into one
    > .msi file?
    >
    > also more importantly, how can i ask the user for sql server login
    > details during set up? so that i can create the database and tables and
    > also set the connection string in the web.config file?
    >
    > i did a google and it appears that i have to use some custom installer
    > class. is there an easier way to do this?
    >
    > thanks for any advice.
     
    Clint Hill, Aug 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    2,968
  2. Brian McCullough
    Replies:
    0
    Views:
    509
    Brian McCullough
    Feb 16, 2007
  3. CSharpner
    Replies:
    0
    Views:
    1,094
    CSharpner
    Apr 9, 2007
  4. Replies:
    0
    Views:
    347
  5. Ira Grollman
    Replies:
    0
    Views:
    152
    Ira Grollman
    Nov 26, 2007
Loading...

Share This Page