1. Putting the WebSite under a Component causes the WebSite's lifetime 
(install/uninstall) to be controlled by that Component.

2. The WebSite needs a Directory attribute provided when it is going to 
be installed/uninstalled.

3. A WebSite element cannot be the child of a Directory element. If you 
want to search for an existing web site put the WebSite element under a 
Product or Fragment element.


Meyrignac, Jean-Charles wrote:
>
> I’m using Wix 3.0.3617 (yesterday’s version).
>
> I would like to install files into a web directory. If this web dir 
> doesn’t exist, the MSI should be able to create it.
>
> Also, I’m trying to *NOT USE* custom extensions.
>
> So , I followed the Wix tutorial:
>
> http://www.tramontana.co.hu/wix/lesson6.php
>
> I used:
>
> <iis:WebSite Id="AdminSite" Description="Default Web Site">
>
> <iis:WebAddress Id="AllUnassigned" Port="[PORT]"/>
>
> </iis:WebSite>
>
> However, the candle compiler outputs an error:
>
> Error 1 The Directory element contains an unexpected child element 
> 'iis:WebSite'.
>
> So I added a Component:
>
> <Component Id="AdminWebSite" Guid="f493af6c-ccbf-4488-8024-9710114c41c3">
>
> <iis:WebSite Id="AdminSite" Description="Default Web Site">
>
> <iis:WebAddress Id="AllUnassigned" Port="[PORT]"/>
>
> </iis:WebSite>
>
> </Component>
>
> But I still get:
>
> Error 1 The iis:WebSite/@Directory attribute was not found; it is 
> required.
>
> This is a bug in IISCompiler.cs, routine ParseWebSiteElement:
>
> if (null == directory && null != componentId)
>
> {
>
> this.Core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, 
> node.Name, "Directory"));
>
> }
>
> The above line means that the directory field cannot be null if the 
> componentId is not null.
>
> However, the componentId cannot be null !
>
> The problem is that when we use a directory for webSite, the uninstall 
> will simply remove the existing website, even if we have sites not 
> created by the installer (at worst, IIS is completely broken in XP and 
> 2003 !).
>
> JC
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ------------------------------------------------------------------------
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

Reply via email to