On Mon, Feb 15, 2010 at 9:15 AM, Sebastian Brand <sebast...@instyler.com>wrote:

> 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 :-)
>


Thanks for the tip, Sebastian! Is there any other way to express dependency
between installations? Is it possible to force uninstallation of dependent
installation?


>
> 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>
>
>
I'm not uninstalling the service myself. I have tried the component
condition, but it didn't work out. As I understand the mechanics of
installer, when my product is installed the condition is true, so the
component is installed. During uninstalling no matter the condition is false
the installer has to remove already installed component and the service
control is executed. Do I understand it right?

P.S. I've got interesting effect while playing with feature conditions. I
have created sub-feature with the component.

<Feature Id="Sub" AllowAdvertise="no" Level="0" >
     <Condition Level="100">ServiceXYInstalled</Condition>

The installer behaves differently when there is no such service on
uninstall:
1) If I run my .msi and choose uninstall, it says it succeed, but the
product still remains installed.
2) If I press Remove from Add/Remove Programs the product is removed from
the system.

In both cases it doesn't try to execute the service control.
------------------------------------------------------------------------------
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