Regarding the uninstallation, all uninstallation by the WiX custom actions is based on component refcounting. I.e. when the last component of guid "8AB78BF1-B785-4203-B23B-2CEB31757ADA" is uninstalled from the system, all things inside that component will be removed.
Although this has the unfortunate side effect you've seen, it's really a weakness of MSI, specifically with installing things with an MSI that are also deployed outside the context of an MSI, or existed before installing the MSI. One way to solve this is only use WiX to deploy all things that consume the apppool (and make sure your component GUIDs are consistent across different MSI's). This will actually be pretty hard considering you allow the user to redirect these at install time. However, if you were to do this, you'd fine things will work fine, and the app pool would only exist when something needed it. That solution probably doesn't fit your situation, so another solution is if you don't want the app pool to be removed on uninstall, put it in its own component and make the component "Permanent". Thanks, Mike Carlson -----Original Message----- From: Ravi Sanker Badipetla [mailto:ravi.san...@microsoft.com] Sent: Wednesday, June 09, 2010 11:52 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Help related to AppPool Hi I have create an Wix install which basically installs an WebApplicaiton. This installer has 2 dialog which are similar. Both of them take IIS Website, AppPool and Virtual Directory. In my case the AppPool and WebSite are the same. I always give "DefaultAppPool" during install. This installs the Application but the ManagedPipeline mode is changed to "Classic" after install A bigger problem is that during the uninstall of the Application the appPool(""DefaulktAppPool) is deleted from IIS. Below is my wix code Any idea why Apppool is deleted? How can I avoid deletion <Component Id="IisWebSiteSetup" Guid="8AB78BF1-B785-4203-B23B-2CEB31757ADA" > <iis:WebAppPool Id="IisWebsiteAppPool" Name="[APPPOOL]" Identity="networkService" /> <CreateFolder/> </Component> <Component Id ="IisWebSiteDir" Guid ="1A7BD72E-161B-4071-8090-19F4C102C783" > <iis:WebVirtualDir Id="IisWebSiteVirtualDir" Alias="[VDNAME]" Directory="WEBINSTALLDIR" WebSite="IisWebsite"> <iis:WebApplication Id="IisWebSiteApplication" Name="WebSiteVd" WebAppPool="IisWebsiteAppPool" Isolation="high"/> </iis:WebVirtualDir> <CreateFolder/> <Condition> <![CDATA[VDNAME <> "/" ]]> </Condition> </Component> <Component Id="IisSetup" Guid="7A6E8BF7-B4CE-4342-B2DE-3C6E689F9D65"> <iis:WebVirtualDir Id="IisVirtualDir" Alias="[WCFVDNAME]" Directory="WCFINSTALLDIR" WebSite="IisPortalsite"> <iis:WebApplication Id="IisWebApplication" Name="PortalServiceVd" WebAppPool="IisAppPool" Isolation="high"/> </iis:WebVirtualDir> <iis:WebAppPool Id="IisAppPool" Name="[WCFAPPPOOL]" Identity="networkService" /> <CreateFolder/> </Component> ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users