1- Not really.
2- The only real option is to have an immediate custom action update the
ServiceControl table during the transaction.

-----Original Message-----
From: Novaisas [mailto:novai...@gmail.com] 
Sent: Sunday, February 14, 2010 4:37 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] dependency on some service

Hi I have two related questions:

1) As a precondition I check if some program is installed. Is there a way to
prevent uninstalling of the program later after my program is installed?

2) Let's say a service should be restarted during installation of my
program.
I do it this way:
<Component Id="ServiceControl" Guid="{GUID}" KeyPath="yes">
<ServiceControl Id="Restart" Name="ServiceName" Start="both" Stop="both"/>
</Component>
However if the service is uninstalled before my program is uninstalled, my
uninstall fails. How to prevent starting of the service on uninstall if the
component was installed, but the service doesn't exist anymore?
----------------------------------------------------------------------------
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to