Yes, the component will be reference counted. The component rules allow the same component to be installed to several directories simultaneously. The service control is performed only when installing or removing the component so it won't behave as you require.
I've never used them myself but have you tried using ServiceDependency elements ? -----Original Message----- From: Thorsten Tarrach [mailto:thors...@atomia.com] Sent: 29 March 2011 10:13 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Same component guid, different products Hi everyone, We have a shared library for all our products we include during compilation. Now I would like to stop and start IIS during installation because running iis applications can get in the way of updates. This is very easily done with the fragment below. <Fragment> <Component Id="CStartStop" Guid="{DDE4A64B-54B8-4679-A49A-4BCE95CFF793}" Directory="FProduct"> <CreateFolder/> <ServiceControl Id="W3SVC" Name="W3SVC" Start="both" Stop="both"/> </Component> </Fragment> Now, if I reference this in several products, they all have the same Guid. Will that cause the component to be reference counted? FProduct is different for every product. It is important this starting and stopping is done every time, not just for the first product. Thanks, Thorsten ----------------------------------------------------------------------------- - Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users