Those registry keys are undocumented, and relying on them will break you. If
you need to use UpgradeCodes, you really will need a custom action.

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: Tuesday, June 15, 2010 10:22 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Detecting MSI dependencies

Thanks Blair that is useful to know (I can see it in the uninstall log
now I look closely).

Mandar, I think the other place to look is the key
"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes" but you
need to convert your UpgradeCode to a compressed GUID.

Neil

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: 16 June 2010 01:56
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Detecting MSI dependencies

FindRelatedProdcuts returns without doing any work (a verbose log tells
you
it is because it is a "maintenance installation").

I wrote a custom action one time that parsed the Upgrade table and set
properties (at the time I called it FindRelatedProductsMinor). It might
be a
good candidate to throw up on codeplex or somewhere...

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: Monday, June 14, 2010 11:05 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Detecting MSI dependencies

Ah I didn't realise that, shame really 'cos it would work really well.
On uninstall "FindRelatedProducts" is run doesn't that populate the
upgrade table?

Mandar, You could use a registry search for the product/upgrade code but
it is not easy in my experience.

Neil

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: 15 June 2010 00:34
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Detecting MSI dependencies

Upgrade table is not checked during uninstall, so that won't work. You
will
need some other means of detecting the dependent installation(s).

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: Monday, June 14, 2010 1:42 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Detecting MSI dependencies

I think you should be able to do this with the Upgrade element:

<Upgrade Id="other apps upgrade code">
  <UpgradeVersion Minimum="0.0.0" Maximum="max version"
IncludeMinimum="no"
OnlyDetect="yes" Property="OTHERAPPDETECTED" />
</Upgrade>

You can then use the OTHERAPPDETECTED property in conditions to block
the
uninstall.

Neil

-----Original Message-----
From: Mandar [mailto:amazi...@rediffmail.com] 
Sent: 14 June 2010 21:21
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Detecting MSI dependencies

Hi there,



Is there a way, during uninstall of an MSI, to detect presence of some
other
MSI and if so, stop/abort uninstallation informing users of presence of
the
dependant MSI ?



In other words, given MSI's A and B, is there a way to express
dependency
between A and B so that A cannot be uninstalled if B is installed ?



Have been reading and searching extensively to find solutions to this
but
haven't been able to figure a way out. 

Any help appreciated.



Thanks,



Mandar

------------------------------------------------------------------------
----
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
----
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
----
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to