The problem is that the description is easily modifiable by the end user. The
IP:Port:Header is the tuple that uniquely identifies your web site.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2007 11:14 PM
To: [EMAIL PROTECTED]
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Creation of Virtual Directory within existing Website
I found the following comment in the Wix custom action code (V2) when it's
looking for the relevant web site
// TODO: fix this to look for the description as well (or is address enough)?
Therefore it uses the first match it finds based on IP and Port (and header if
your using one). Seems to me that it would be better to include description to
allow more exact matching.
________________________________
From: Aaron Shurts [mailto:[EMAIL PROTECTED]
Sent: 05 June 2007 20:48
To: Stone, Darren (HBOS FS, IT , DDC Infrastructure)
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Creation of Virtual Directory within existing Website
I have done many experiments trying to get this to work, but keep coming up
with the same problems. I tried creating a dummy component with the website
info and referencing that, same result. I tried actually nesting underneath a
component with the website settings and the ConfigureIfExists flag set to 'no'
and still same result. No matter what I do, the virtual directory always ends
up under the default stopped website, rather than my started website. It looks
like I might have to whip up a quick VBScript custom action in the mean time to
get this accomplished. I'll go ahead and create a bug for this.
Regards,
//aj
On 6/5/07, Aaron Shurts <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
I am having the same problem, so if anyone has a solution, please let us know
what it might be.
Regards,
//aj
On 6/4/07, [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> <[EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
The scenario is that my target machine has two websites as follows:
Default Web Site, IP Address - All Unassigned, Port - 80, Status (STOPPED)
My Website, IP Address - All Unassigned, Port - 80, Status (STARTED)
Therefore they are identical but the default site is stopped (I know that the
default web site should probably be deleted but this is not within my control).
I am attempting to create a new virtual directory within My Website and
therefore I reference it as follows:
<!-- Reference to website -->
<WebSite Id='MyWebSite' Description='My Website'>
<WebAddress Id='MyWebsiteAddr' Port='80' />
</WebSite>
The problem I am having is that my virtual is always created within the default
web site. If I change the Port or IP Address of the default web site then it is
created within my website as expected (but this is not something I can do in
production). Therefore the behaviour seems to be that the website lookup is
done using IP Address and Port only (i.e. Description is ignored), and that the
first IIS web site found that matches will be used (Default Web Site in this
case as it is instance 1).
Is there a way to do a more exact match to ensure that my virtual is always
created within the correct website.
As always any feedback would be most appreciated.
One thing I should mention here is that I have only tested this on XP (using
IISAdmin.Net to replicate sites), I have not yet tested on 2003
.
--------------------------------------------------------------------------------------------------------------------
HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound,
Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are
authorised and regulated by the Financial Services Authority.
==============================================================================
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net<mailto:WiX-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wix-users
.
----------------------------------------------------------------------------------------------------------------------
HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound,
Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are
authorised and regulated by the Financial Services Authority.
==============================================================================
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users