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
<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

Reply via email to