I see; the ConfigureIIs ca doesn't get added, but the other ca's call 
ScaWebsGetBase, which finds the appropriate metabase path.  When the WiX 
help says that it inserts a row into the IISWebSite table, it means at 
link time, not that it updates the MSI database with information related 
to the found web site.  Of course, if I had thought about that, it makes 
sense; having a ca attempt to update the MSI database is probably a 
really bad idea.

I am going to add an entry point for a ca that returns the directory for 
a web site matching an IISWebSite entry.

Thanks,

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



-------- Original Message  --------
Subject: Re: [WiX-users] How does one use a WebSite locator in order to 
set the file path for content?
From: Rob Mensching <r...@wixtoolset.org>
To: tomtr...@artizan.com, 'General discussion for Windows Installer XML 
toolset.' <wix-users@lists.sourceforge.net>
Date: 2/10/2009 8:19 PM
> The WebSite doesn't find the directory.  It finds a root for other WebXxx
> elements.
>
> -----Original Message-----
> From: Thomas S. Trias [mailto:tomtr...@artizan.com] 
> Sent: Tuesday, February 10, 2009 17:27
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] How does one use a WebSite locator in order to set the
> file path for content?
>
> Perhaps I am missing something, but I cannot figure out how I would use
> the WebSite element (outside of a Component, so it acts as a locator) in
> order to set the path for content.
>
> If I have the following:
>
> <iis:WebSite Id="EXISTINGWEBSITE" Description="Default Web Site" SiteId="*"
> />
>
> <Directory Id="TARGETDIR" Name="SourceDir">
>   <Directory Id="PATH_OF_EXISTINGWEBSITE">
>     <Directory Id="MyStuff" Name="MyStuff">
>       <Component Guid="PUT-GUID-HERE" Id="MyStuff" KeyPath="yes">
>         <CreateFolder />
>         <iis:WebDir Id="MyStuff" Path="MyStuff" WebSite="EXISTINGWEBSITE" />
>       </Component>
>       ... a bunch of Component elements containing files ...
>     </Directory>
>   </Directory>
> </Directory>
>
> the metabase changes happen in the correct place, but how do I get the
> files to deploy to the proper directory? Do I have to write a custom
> action to read the IISWebSite record in order to set the
> PATH_OF_EXISTINGWEBSITE property? If I'm going to do that, I might as
> well write a custom action that takes an arbitrary Windows Installer
> query and returns the result as text...
>
> Thanks,
>
> --
> Thomas S. Trias
> Senior Developer
> Artizan Internet Services
> http://www.artizan.com/
>
>
> ----------------------------------------------------------------------------
> --
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
>   


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to