The Documentation speculates that a 'Nesting WebSite under Product, Fragment, or Module results in a web site "locator" record being created in the IIsWebSite table. This means that the web site itself is neither installed nor uninstalled by the MSI package. It does make the database available for referencing from a WebApplication, WebVirtualDir or WebDir record. This allows an MSI to install WebApplications, WebVirtualDirs or WebDirs to already existing web sites on the machine. The install will fail if the web site does not exist in these cases.'
I am seeing a different result that is really putting a stopper on my msi. Below is a wix file with just the Web elements being used. I have omitted other pieces to keep it small. My main issue is with the WebSite Element not getting a locator to the website I am expecting. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="8e38cc23-95fe-439c-a069-ba0f44e58e26" Name="My Web Site" Language="1033" Version="6.2.2.0003" Manufacturer="Acme" UpgradeCode="8ab368c7-1e8d-48aa-8e55-481da6494e65"> <Package InstallerVersion="200" Compressed="yes" /> <!-- Conditions --> <Condition Message="A later version of [ProductName] is already installed">NOT NEWERVERSIONDETECTED</Condition> <!-- Properties --> Omitted... <iis:WebDirProperties Id="MSLProperties" AnonymousAccess="no" WindowsAuthentication="yes" AccessSSL="no" Execute="yes" Read="yes" Script="yes"/> <Component Id="WebAppComponent" Guid="{79265EDE-6C15-47cb-BA9C-CDFCD72500D2}" KeyPath="yes" Directory="dir_Acme_0"> <iis:WebAppPool Id="WebAppPool_1" Identity="networkService" Name="pool_1" /> <iis:WebAppPool Id="WebAppPool_2" Identity="networkService" Name="pool_2" /> <iis:WebVirtualDir Id="VDir_1" Alias="VDIR1" Directory="dir_Acme_0" WebSite="WebSiteId" DirProperties="WebProperties"> <iis:WebApplication Id="Web_1" Name="VDIR1" WebAppPool="WebAppPool_1" /> <iis:WebVirtualDir Id="VDir_2" Alias="VDIR2" Directory="dir_Acme2_0" DirProperties="WebProperties"> <iis:WebApplication Id="Web_2" Name="VDIR2" WebAppPool="WebAppPool_2" /> </iis:WebVirtualDir> </iis:WebVirtualDir> </Component> <!-This should produce a website locator to install the WebApplications under it. In this particular run the Description RSP11 doesn't even exist yet it still puts the site under the Default web site (site id = 1) if I do put in a valid site other than the default website say siteid = 100395772 it will still put the web applications under the Default website. Is there something I am missing in this. I have also done this with using Properties for the Description Attribute and the Port attribute and am experiencing the same results. --> <iis:WebSite Id="WebSiteId" Description="RSP11" > <iis:WebAddress Id="AllUnassigned" Port="80"/> </iis:WebSite> Omitted other calls... </Product> </Wix> Ryan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users