I believe this is where you would use a Wixlib (or merge module), so that the 
service configs lived inside the same component Ids in both installers. In 
theory then the refrencing counting on the shared component ID's should not 
trigger the service to be uninstalled.

-----Original Message-----
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: Wednesday, September 26, 2012 11:51 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] shared services question...

I have two installers that share 4 services... each service creates its service 
and "uninstalls" its service:

    <InstallExecuteSequence>
      <Custom Action="SetStartESService" After="CostInitialize">NOT 
Installed</Custom>
      <Custom Action="StartESService" Before="StartServices">NOT 
Installed</Custom>

      <Custom Action="SetStopESService"
After="CostInitialize">Installed</Custom>
      <Custom Action="StopESService"
Before="StopServices">Installed</Custom>
    </InstallExecuteSequence>

for the fileset I have added: SharedDllRefCount="yes" which will ensure that 
the files will not be uninstalled if removing one product, however the services 
are being "uninstalled" (the service is removed not the files)

I was thinking of within the product.wxs of each product create a property 
registry search for the other products GUID (which means if exist the product 
is installed, I could add that property search into the InstallExecuteSequence 
for each custom action to make sure the service isn't recreated and not 
"uninstalled" if installing both...

Does that make sense or is there a better way to do this?

thanks,

Steve



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/shared-services-question-tp7580859.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to