I managed to solve the problem. Even none of the components install any files it is still important they "install" to the same folder. So the trick is to replace the directory tree with this one:
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> Nevertheless, I appreciate any feedback more experienced users can give me on this solution. Thorsten > -----Original Message----- > From: Thorsten Tarrach [mailto:thors...@atomia.com] > Sent: 03 December 2010 09:06 > To: 'General discussion for Windows Installer XML toolset.' > Subject: RE: [WiX-users] Having a reference counter for components > > Hey, > > Thanks for your answers. I will just post the WiX Code of the merge module. > Maybe that can cast some light on this: > > <?xml version="1.0" encoding="UTF-8"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" > xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" > xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> > <Module Id="AppPoolModule" Language="1033" Version="1.0.0.0"> > <Package Id="6561cbee-3012-44c3-a446-07d573da993c" > Manufacturer="abc" InstallerVersion="200" /> > > <util:Group Id="UsersGroup" Name="Users"/> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="MergeRedirectFolder"> > > <Component Shared="yes" Id="CNewUser" > Guid="32892BF9-F947-476A-9832-042EA96E65BC"> > <CreateFolder/> > <util:User Id="NewUser" Name="AppPoolUser" Password="test123T" > UpdateIfExists="no" PasswordNeverExpires="yes" > CanNotChangePassword="yes"> > <util:GroupRef Id="UsersGroup"/> > </util:User> > </Component> > > <Component Shared="yes" Id="CAppPool" > Guid="5D0736E5-3A31-4289-9F0A-CA8C56EFF51E"> > <CreateFolder/> > <iis:WebAppPool Id="AppPool" ManagedRuntimeVersion="v2.0" > Name="Atomia Integrated" ManagedPipelineMode="integrated" > Identity="other" > User="NewUser"/> > </Component> > > </Directory> > </Directory> > </Module> > </Wix> > > > > -----Original Message----- > > From: Wilson, Phil [mailto:phil.wil...@invensys.com] > > Sent: 02 December 2010 20:06 > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] Having a reference counter for components > > > > It matters what the condition is on the custom action that deletes the > > app pool. > > > > Phil Wilson > > > > > > -----Original Message----- > > From: Chris Ridd [mailto:chrisr...@mac.com] > > Sent: Thursday, December 02, 2010 10:15 AM > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] Having a reference counter for components > > > > > > On 2 Dec 2010, at 17:35, Wilson, Phil wrote: > > > > > Reference counting works on components, it really does work. I think > > you're saying that there's a custom action that runs when one product > > is uninstalled, even though others are using the pool. Is there a > > condition somewhere on the CA that uninstalls the app pool? > > > > Does it matter if the component has a non-versioned file as a keypath? > > > > Cheers, > > > > Chris > > > > > ---------------------------------------------------------------------------- > -- > > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > > Tap into the largest installed PC base & get more eyes on your game by > > optimizing for Intel(R) Graphics Technology. Get started today with > > the > > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > > http://p.sf.net/sfu/intelisp-dev2dev > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > *** Confidentiality Notice: This e-mail, including any associated or > attached > > files, is intended solely for the individual or entity to which it is > addressed. > > This e-mail is confidential and may well also be legally privileged. > > If > you have > > received it in error, you are on notice of its status. Please notify > > the > sender > > immediately by reply e-mail and then delete this message from your > system. > > Please do not copy it or use it for any purposes, or disclose its > > contents > to any > > other person. This email comes from a division of the Invensys Group, > > owned by Invensys plc, which is a company registered in England and > > Wales with its registered office at 3rd Floor, 40 Grosvenor Place, > > London, SW1X 7AW (Registered number 166023). For a list of European > > legal entities > within > > the Invensys Group, please go to > > > http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&pr > > ev_id=77. > > > > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail > > recept...@invensys.com. This e-mail and any attachments thereto may be > > subject to the terms of any agreements between Invensys (and/or its > > subsidiaries and affiliates) and the recipient (and/or its > > subsidiaries > and > > affiliates). > > > > > > > > > ---------------------------------------------------------------------------- > -- > > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > > Tap into the largest installed PC base & get more eyes on your game by > > optimizing for Intel(R) Graphics Technology. Get started today with > > the > > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > > http://p.sf.net/sfu/intelisp-dev2dev > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users