I do exactly that. Here's a code snippet <Component Id="AppPool" DiskId="1" Guid="2C9B4381-6AF3-42ef-9D00-7EC1BD9CD589" Permanent="no"> <Condition><![CDATA[(VersionNT = 502) OR (VersionNT >= 600)]]></Condition> <WebAppPool Id="E3" Name="E3" Identity="networkService"/> </Component>
I then use other Components to specify similar Conditions for whether to create the old style Web App or use the new one with the AppPool attribute. <Component Id="VirtualDir" Guid="34283099-5D47-4c31-8AAE-C4EAB80AC4C2" Permanent="no"> <Condition><![CDATA[VersionNT = 500]]></Condition> <WebVirtualDir Id="E3Container" Alias="E3Container" Directory="E3CONTAINERDIR" WebSite="Default" DirProperties="E3GLOBALPROPS"> <WebApplication Id="E3ContainerVirtualDir" Name="E3Container"> </WebApplication> </WebVirtualDir> </Component> <Component Id="VirtualDir2003" Guid="183C7B2F-3898-4c07-95A7-CA205E8F958F" Permanent="no"> <Condition><![CDATA[(VersionNT = 502) OR (VersionNT >= 600)]]></Condition> <WebVirtualDir Id="E3Container1" Alias="E3Container" Directory="E3CONTAINERDIR" WebSite="Default" DirProperties="E3GLOBALPROPS"> <WebApplication Id="E3ContainerVirtualDir1" Name="E3Container" WebAppPool="E3"> </WebApplication> </WebVirtualDir> </Component> -----Original Message----- From: Reid Peryam [mailto:re...@cqg.com] Sent: Wednesday, June 30, 2010 9:55 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] WebAppPool does not function in Windows XP Hello - I have a wix 2 build proj that is deployed in two places. My development machine is Windows XP and the deployment server which is Windows Server 2003. There is an issue with the WebAppPool I have included within the installer as it causes an error when the built .msi is installed on my development machine. (Since Windows XP has IIS 5.1 which does not support AppPool creation - or so I am to believe). I would like to create a condition within my .wxs.template to only install the WebAppPool into my WebApplication if the target machine supports the functionality. Is anyone able to suggest a solution? Currently my code is: <Component Id="WebHonestyAppPoolComponent" Guid="5E34B9B4-8C18-4d3e-AE91-AFE652261DD0"> <WebAppPool Id="WebHonestyAppPool" Name="WebHonestyAppPool" RecycleMinutes="120" /> </Component> <Component Id="WebHonestyWebsiteVirtualDirComponent" Guid="964317EE-B27B-4df0-9FB4-6A80798563AF"> <WebVirtualDir Id="WebHonestyWebsiteVirtualDir" Alias="<!--%=packageName%-->" Directory="TARGETDIR" WebSite="DefaultWebSite"> <WebApplication Id="WebHonestyWebsiteVirtualDir" Name="<!--%=packageName%-->" WebAppPool="WebHonestyAppPool"/> </WebVirtualDir> </Component> </Directory> <WebSite Id="DefaultWebSite" Description="Default Web Site"> Thank you very much Reidp ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users