Hello,
1) You only could do a manual check if the other product is still installed
while your product start. Alternatively, you could disable the Remove-Button
from the Control Panel for the other product. To do so add the "NoRemove" value
to the other products uninstall registry key
(HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{product key}). But
consider the other product's vendor might not like this :-)
2) Do not use Start/Stop=both if you are uninstalling the services too. There's
a Remove="uninstall" available. If you are not un/installing the service
yourself, add a condition to the component using a property that gets set if
the service was found (LaunchCondition). I.E.:
<property Id="ServiceXYInstalled">
<registrysearch ... />
</property>
<component ..>
<servicecontrol ... />
<condition>ServiceXYInstalled</condition>
</component>
Best regards,
Sebastian Brand
[email protected]
Instyler Software - Software development, deployment and productivity
Geisenfelder Str. 53a - 85053 Ingolstadt, Germany - EU VAT ID: DE219712370
Phone: +49 841-4544567 - Fax & voicemail: +49 321-21220152
www.instyler.com
> -----Original Message-----
> From: Novaisas [mailto:[email protected]]
> Sent: Monday, February 15, 2010 01:37
> To: [email protected]
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users