As you say, the installcondition determines if the package *should* be
installed and the detectcondition determines if the package is *present*.
The detectcondition is needed by Burn itself and is there because there's no
standard way to know if an exepackage is installed.

The installcondition may differ from the detectcondition when you want to
install for stricter reasons than just the detectcondition. Also, the
installcondition can also be used to force uninstallation if the condition is
not met.

You can use them for whatever you like but as an example, you might want the
installcondition to take into account the presence of multiple or related
packages, or information not related to the exe package itself. For example,
you might install a language runtime if the "feature" that requires it was
selected for installation and the runtime is not installed (the
detectcondition is false) and a higher version is not installed either.

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: 19 August 2012 08:59
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Clarification on InstallCondition andDetectCondition

Can anyone help with this?

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: 15 August 2012 18:12
To: General toolset. (wix-users@lists.sourceforge.net)
Subject: [WiX-users] Clarification on InstallCondition and DetectCondition

I am a bit confused on the use of the InstallCondition and DetectCondition
attributes on the ExePackage element and would like some clarification on my
understanding.

Would you use InstallCondition to restrict the component being installed on
various OS configurations e.g. one package for x86 and another for x64 or
only install package on Windows XP? Then DetectCondition to actually
determine whether the package is already installed?

Regards

Neil

Neil Sleightholm
X2 Systems Limited
n...@x2systems.com<mailto:n...@x2systems.com>

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to