locked
Web Setup Project RRS feed

  • Question

  • User-1765662431 posted

    If i have 2 copies of the same code base - Can I use 1 web setup project to install the same website to 2 separate web sites under IIS.

    Might sound like a strange request but I want to deploy 2 versions of the site using 1 setup project.

    Thanks for any advice

    G

    Tuesday, January 19, 2010 10:21 AM

Answers

  • User372121194 posted

    Hi,

    By default, Web Setup project just copy its contents to Virtual Directory on target machine.

    To deploy multiple websites using one Web SetUp  project, we can add other website folders into one website folder so that all websites will be copied to target machine. And then use Custom Action to create Virtual Directory and then retrieve these website folders and copy them to created Virtual Directory.

    For more information about using Custom Action to create Sites and Virtual Directories in IIS with System.DirectoryServices, see http://msdn.microsoft.com/en-us/library/ms524896.aspx  

    I look forward to receiving your test results.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 24, 2010 10:29 PM