Thanks this helps. Btw - are there currently any plans to remove the wix3 requirement for w08/iis7 installs to have the iis6 metabase mgmt compatibility features installed in order for <iis:* /> installer activities to do their thing?
-----Original Message----- From: Amy Rosewater [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 1:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] what is the recommended way for setting the AppPool associated with a new iis:WebSite? Hi Robert, In my wxs for IIS components I have all those elements separate such that I can choose based on the user selections what components to install. Note that if the condition for the CreateWebsiteWithPortAnonymous component are met, then the WebApplication is the MainWebApplication (at the top) and my WebAppPool created by CreateAppPool component is set as the app pool. Similarly, if the CreateVirtualDirectoryAnonymous conditions are met, then the WebApplication is my MainWebApplication. Hope this helps... Amy <iis:WebApplication Id="MainWebApplication" Name="[IISWEBAPPLICATIONNAME]" WebAppPool="WebAppPool" /> <DirectoryRef Id="TARGETDIR"> <!--These components can be shared across multiple IIS6 Components--> <Component Id="CreateUser" Guid="5f36c780-e62b-11dc-95ff-0800200c9a66"> <Condition><![CDATA[IISMJRVRSN="#6"]]></Condition> <util:User Id="InstallUser" Name="[APPLICATIONUSER]" Password="[APPLICATIONPASSWORD]" CreateUser="yes" PasswordNeverExpires="yes" CanNotChangePassword="yes" RemoveOnUninstall="yes" UpdateIfExists="yes" Domain="[ComputerName]" LogonAsService="yes"> <util:GroupRef Id="IISWorkerProcessGroup"/> </util:User> </Component> <Component Id="CreateAppPool" Guid="28676FA9-2BF7-4815-8732-EF2CF0B8470E"> <Condition><![CDATA[IISMJRVRSN="#6"]]></Condition> <iis:WebAppPool Id="WebAppPool" Name="[IISAPPPOOLNAME]" Identity="other" User="InstallUser" IdleTimeout="0" RecycleMinutes="0" RecycleRequests="0"> <iis:RecycleTime Value="03:00"/> </iis:WebAppPool> </Component> <!--These components have something unique that must be within this specific component IIS6 Component--> <Component Id="CreateVirtualDirectoryAnonymous" Guid="5f9a10ee-72b1-11dc-8314-0800200c9a66"> <Condition><![CDATA[(IISMJRVRSN="#6") AND (IISCONFIGURATIONTYPE="0") AND (IISUSEWINDOWSAUTHENTICATION<>"checked")]]></Condition> <iis:WebVirtualDir Id="WebVirtualDir" Alias="[IISVIRTUALDIRECTORY]" Directory="MainWebDirectory" WebSite="DefaultWebSite" WebApplication="MainWebApplication" DirProperties="WebDirPropertiesAnonymous" /> </Component> <Component Id="CreateWebsiteWithPortAnonymous" Guid="f3ced440-e62c-11dc-95ff-0800200c9a66"> <Condition><![CDATA[(IISMJRVRSN="#6") AND (IISCONFIGURATIONTYPE="1") AND (IISWebsiteUseIP<>"checked") AND (IISUSEWINDOWSAUTHENTICATION<>"checked")]]></Condition> <iis:WebSite Id="NewWebsitePort" Description="[IISWEBSITE]" Directory="MainWebDirectory" AutoStart="yes" WebApplication="MainWebApplication" DirProperties="WebDirPropertiesAnonymous"> <iis:WebAddress Id="WebsiteWebAddressPort" Port="[IISPORT]" /> </iis:WebSite> </Component> -----Original Message----- From: Robert O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 2:13 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] what is the recommended way for setting the AppPool associated with a new iis:WebSite? what is the recommended way for setting the AppPool associated with a new iis:WebSite? Lots of samples on this for the case of an iis:WebVirtualDir but nothing that made sense in the case of an iis:WebSite where creating a child iis:WebApplication doesn't make sense given that's typically a vdir thing in the iis admin UI experience. ------------------------------------------------------------------------ - 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 ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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