I'm not sure what "the same problem" means, but the following works the way you need:
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="TestAppPool"> <Component Id="ProductComponent" Guid="GUID-HERE"> <File Name="file.zip" Source="D:\file.zip" /> <iis:WebVirtualDir Id="TestVirtual" Alias="test" Directory="INSTALLLOCATION" WebSite="DefaultSite" WebApplication="DefaultApp" /> </Component> </Directory> </Directory> </Directory> <iis:WebSite Id="DefaultSite" Description="Default Web Site"> <iis:WebAddress Id="DefaultAddress" Port="80"/> </iis:WebSite> <iis:WebAppPool Id="TestPool" Name="TestAppPool" /> <iis:WebApplication Id="DefaultApp" Name="Default application" WebAppPool="TestPool" /> As you can see, only WebVirtualDir element is located under Component - only this part will be installed and uninstalled. Other elements (WebSite, WebAppPool, WebApplication) are there just for reference from WebVirtualDir. These won't be installed and uninstalled. Of course, this assumes that both the mentioned website and the application pool exist. -- Yan -----Original Message----- From: MYFLEX [mailto:shrinuen...@gmail.com] Sent: Tuesday, 29 June, 2010 12:19 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] AppPool gets deleted during uninstall I also have the same problem. Can anyone Please tell me how to solve this. srinivas -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/AppPool-ge ts-deleted-during-uninstall-tp5159767p5234250.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ 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