Well, for your website to be created, it needs to be in a component: <Fragment> <?include ConfigurationInitialize.wxi ?>
<iis:WebSite Id="CoreWebservicesV3" Description='CoreWebservicesV3' Since your iis:WebSite element is outside of a component, it serves only as a locator and the site is not created. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: chennam [mailto:chatrapathi.chen...@gmail.com] Sent: Thursday, May 30, 2013 11:49 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Create Web app pool and Site on on Server 2008 R2 with IIS 7.5, WiX 3.7 Hi, I was trying to create the Site and App-pool. The site folder getting created on [INSTALLLOCATION] Whcih was passed through command line and webapp is getting installed. But When I go and look in inetmgr site getting created on Default Website and not as separate site and WebApp-pool getting created as required but not gets removed on Uninstall. Please let me know where I am doing Wrong. Here is the code. <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="CoreWebservicesV3" > <Directory Id="WEBSITE" Name="$(var.CWSProductVersion)" /> </Directory> </Directory> </Directory> <Feature Id="MainContent" Title="CoreWebservices Website" Description="The CWS website content" Level="1"> * <ComponentGroupRef Id="MyWebIssConfiguration" />* <ComponentGroupRef Id="CoreWebservices" /> </Feature> *<ComponentGroup Id="MyWebIssConfiguration"> <ComponentRef Id="MyWebVirtualDirCmp" /> <ComponentRef Id="MyWebAppPoolCmp" /> </ComponentGroup>* /***********************************************/ <Fragment> <?include ConfigurationInitialize.wxi ?> <iis:WebSite Id="CoreWebservicesV3" Description='CoreWebservicesV3' Directory='INSTALLLOCATION' > <iis:WebAddress Id="AllUnassigned" Port="80" /> </iis:WebSite> <DirectoryRef Id="INSTALLLOCATION"> <Component Id="MyWebAppPoolCmp" Guid="" KeyPath="yes"> <util:User Id="MyWebAppPoolUser" CreateUser="no" Name="[IDENTITY_NAME]" Password="[IDENTITY_PWD]" RemoveOnUninstall="yes" Domain="[IDENTITY_DOMAIN]" /> <iis:WebAppPool Id="CWSWebAppPool" Name="CoreWebservicesV3" ManagedRuntimeVersion="v4.0" ManagedPipelineMode="Integrated" Identity="other" User="MyWebAppPoolUser" > <iis:RecycleTime Value="00:00"/> </iis:WebAppPool> </Component> <Component Id="MyWebVirtualDirCmp" Guid="{751DEB01-ECC1-48ff-869A-65BCEE9E0528}" KeyPath="yes" > <iis:WebVirtualDir Id="MyWebVirtualDir" Alias="CoreWebservicesV3" Directory="INSTALLLOCATION" WebSite="CoreWebservicesV3" > <iis:WebDirProperties Id="MyWebVirtDirProperties" AnonymousAccess="no" BasicAuthentication="no" WindowsAuthentication="yes" /> <iis:WebApplication Id="MyWebWebApplication" Name="CoreWebservicesV3" /> </iis:WebVirtualDir> </Component> </DirectoryRef> Thanks in Advance Chatra -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Create-Web-app-pool-and-Site-on-on-Server-2008-R2-with-IIS-7-5-WiX-3-7-tp7586215.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users