Without a SiteId, the custom action looks for matches by key address 
(the first WebAddress element); with a SiteId of "*", the custom action 
looks for a match by description (ServerComment in the metabase).  So, 
you need:

<iis:WebSite Id="EXISTINGWEBSITE" Description="I do not think this matters">
  <iis:WebAddress Id="PrimaryAddr" Port="80" />
</iis:WebSite>

- or -

<iis:WebSite Id="EXISTINGWEBSITE" Description="Default Web Site" 
SiteId="*" />

If you put the WebSite element outside of any Component elements, then 
it will not be configured, it will only be used as a reference for other 
elements (e.g. WebDir, WebVirtualDir).  The one issue I have run into is 
the fact that if you need to create a new physical directory within the 
web site and you do not know the path to the web site prior to 
installation time, there is currently no built-in mechanism to find out 
at install time.  While this is somewhat easily remedied with a script 
Custom Action, I am going to bite the bullet and provide on in C++ as 
part of the WiX IIS extensions.

Thanks,

Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/



-------- Original Message  --------
Subject: Re: [WiX-users] Attributes specify existing IIS website?
From: Jeremy Lew <j...@liquidmachines.com>
To: General discussion for Windows Installer XML toolset.   
 <wix-users@lists.sourceforge.net>
Date: 2/12/2009 12:14 PM
> For clarification, let's say I don't know the SiteId, which is the
> obvious answer to this. 
>
> -----Original Message-----
> From: Jeremy Lew [mailto:j...@liquidmachines.com] 
> Sent: Thursday, February 12, 2009 1:07 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Attributes specify existing IIS website?
>
> Does anyone know the minimal set of attributes which must be specified
> on the iis:website/iis:webaddress directory to refer to a pre-existing
> site?  I don't want to create a new site or change the existing site in
> any way.
>
> Thanks,
> Jeremy
>
> ------------------------------------------------------------------------
> ------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>   


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to