The server where I want to install my website has more than one 'root'
website in IIS - "Default web site" and another website. Both use port 80.
When Windows installer runs, it prompts the user only for the virtual
directory name and port number. It does not install the site under "Default
web site" but under the other web site (presumably, because the other site's
name starts with "a", and it finds this first). This despite the other
website being inactive.
I want the website to be installed under "Default web site" (or
alternatively, in its own root), but I don't see any way of forcing this in
the .NET Web setup project or providing the user with a dialog to specify the
target web site.
I tried altering the setting of the Web application folder's IsApplication
property (which specifies whether an IIS root will be created), but it
installed the web site in the same place as before.
Thanks in advance for any suggestions.
Phil Wilson - 15 Jul 2005 18:52 GMT
I don't believe there's a way to specify the exact web site that gets
chosen. The algorithm is that installs to the web site that matches your
port number. If there are multiple sites, it chooses the first active site
it finds (but it's not clear to me how "first" is derived).

Signature
Phil Wilson [MVP Windows Installer]
----
> The server where I want to install my website has more than one 'root'
> website in IIS - "Default web site" and another website. Both use port 80.
[quoted text clipped - 19 lines]
>
> Thanks in advance for any suggestions.
Todd Derksen [MSFT] - 19 Jul 2005 19:32 GMT
The ability to choose which website has been added to Visual Studio 2005
the Beta is available.
Thanks
Todd Derksen
--------------------
Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Phil Wilson" <Phil.Wilson@unisys.spamcom>
>References: <0518EACB-B400-4891-B084-49FB0294B207@microsoft.com>
[quoted text clipped - 40 lines]
>>
>> Thanks in advance for any suggestions.