@Sandher: Yes, this is the approach I am testing right now, and it seems
to work fine. 

@Blair: Interesting. Definitely somewhat easier than searching for a
registry key. 

Thanks for both suggestions. 

Best regards, 
Thomas Due

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: 28. oktober 2009 15:59
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] How do I check for existance of other
installation

If you know the UpdateCode of the primary product, you can add an
update\updatevers...@onlydetect='yes' that you can then use in a
LaunchCondition, something like this:

<Update Id="PRIMARY_PRODUCT_UPGRADE_CODE">
  <UpgradeVersion OnlyDetect="yes" Property="PRIMARY_PRODUCT"/><!--Add
any
other required constraints, such as min/max versions, language, etc.-->
</Upgrade>

<Condition Message="Primary Product must be installed">Installed OR
PRIMARY_PRODUCT</Condition>

-----Original Message-----
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: Wednesday, October 28, 2009 6:13 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How do I check for existance of other
installation

In most cases you would check for the existence of something the primary
product installs such as a Registry Key or a File Version. This is how
the .NET Framework checks in WixNetfxExtension work AFAIK.
I use Properties with RegistrySearches in our plug-in installers to
check for the existence of the app the plug-in is for and the existence
of our software. You can then use those Properties in LaunchConditions
or Feature Conditions to either disallow installation entirely in the
first case or selectively disable/remove Features if you have Features
which depend on the primary product existing in the second case.

Works pretty well for us so far.


Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 
 
-----Original Message-----
From: Thomas Due [mailto:thomas....@scanvaegt.dk] 
Sent: 28 October 2009 12:07
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How do I check for existance of other installation

I know this has probably been asked about a zillion times before, but
here goes: 

I have created an installer for a product I am developing. This project
however depends on the existence of our primary product. 
So, basically I have to test for the existence of our primary product,
and if it is not installed, abort the installation. 
How do I do that?

Is there some kind of support built into MSI, or do I simply solve it by
having the primary product create a key in a known location in the
registry? 
If this key exists, then I can proceed with the installation, if not
abort. 


Best regards,
Thomas Due - Software Developer


------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
----
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to