David,
Thank you for the very informative answer, it made things much clearer
for me.
All the best,
Michal.
________________________________
From: david adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 5:01 PM
To: wix-users@lists.sourceforge.net
Cc: Michal Peled
Subject: RE: [WiX-users] Creating a new IIS website with an existing
port
Michal:
I think that you problem is more an issue with the IIS API (implemented
by WiX) than WiX itself.
You can have only one active web site with a given IP / Port / Host
Header combination. You can have any number of "duplicates", but only
one will be active.
Your challenge is coming up because IIS manages the web sites not by the
IP / Port / HH combination, but via an indexed array. The IIS API
performs a lookup of the array index using the IP / Port / HH as the
key. The actions are performed using the key value. For a web site
create, I believe that WiX recognizes that you are attempting to create
a duplicate (because the index lookup returned a match) so it is
ignoring the web site declarations. I am not certain, but you may be
able to see as much in a verbose log file.
I think that you can do it via the MMC is because that model is
index-aware. It identifies the sites by the index (not the IP / Port /
HH lookup). When there is a duplicate identifier address, it simply
implements a rule that only one can be active (all others are stopped).
David Adams, MCSD
MSN MessengerID: [EMAIL PROTECTED]
Web: http://www.swamidavesays.com <http://www.swamidavesays.com/>
________________________________
Date: Thu, 14 Feb 2008 11:35:22 +0200
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Creating a new IIS website with an existing
port
Still a problem. Insights, anyone?
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michal
Peled
Sent: Sunday, February 03, 2008 10:44 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating a new IIS website with an existing port
Hi all,
My installation allows the user to create a new web site during
installation, providing the new site Description (name), and bindings
(port number, host header etc.).
The installation takes place on IIS 6.0 only, and the new website is
being created using iis:website controls and compiling with the
WixIIsExtension.
The situation is that users cannot create a new website with an existing
port number (granted to an existing site), even if the bindings are
different.
For example: if a user has site "A" on port 345, he can't create a new
website named "B" with the same port number using my installation.
The installation doesn't fail and doesn't change anything existing in
IIS, the website is just not being created.
When performing the same action manually on IIS, I see that the behavior
is to create the new site in a "stopped" state. That's something I can
live with.
Is that the way Wix works with IIS, or is there something I can do
differently?
Help appreciated,
Michal.
________________________________
Connect and share in new ways with Windows Live. Get it now!
<http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_01
2008>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users