Hi,
Does anybody have a good working example of using the iis:WebDir
element?
I'm using WiX 3.0.3907.0 with the following illustrated example:
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="MyWeb" Guid="{...}">
<CreateFolder/> <!-- To avoid ICE018 errors -->
<Component Id="MyWeb" Guid="{...}">
<CreateFolder/> <!-- To avoid ICE018 errors -->
<iis:WebDir Id="MyWebDir" Path="Dir/SubDir" WebSite="DefaultWebSite">
<iis:WebDirProperties Id="MyWebDirProps" AnonymousAccess="yes"/>
</iis:WebDir>
</Component>
</Directory>
<iis:WebDirProperties Id="MyWebDirProps" AnonymousAccess="yes"/>
</iis:WebDir>
</Component>
</Directory>
<iis:WebSite Id="DefaultWebSite" Description="Default Web Site">
<iis:WebAddress Id="AllUnassigned" Port="80"/>
</iis:WebSite>
</Fragment>
But it does not work as expected. I would expect that a "C:\Inetpup\wwwroot\Dir\SubDir" folder were created (but I'm not sure that I've specified the @Path attribute correct).
<iis:WebAddress Id="AllUnassigned" Port="80"/>
</iis:WebSite>
</Fragment>
But it does not work as expected. I would expect that a "C:\Inetpup\wwwroot\Dir\SubDir" folder were created (but I'm not sure that I've specified the @Path attribute correct).
What is the difference (advantage/disadvantage) between using <iis:WebDir> element to using plain <Directory>
elements?
Thanks in advance for all replies,
/Michael
------------------------------------------------------------------------- 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