I think what you want to do could be done with a:

1) Launch condition dependent on a property;
2) The property is set based on a Registry Search, File Search, or Component 
Search.

--
John M. Cooper



-----Original Message-----
From: Volnei dos Santos [mailto:vol...@gmail.com] 
Sent: Thursday, February 19, 2009 2:51 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Dependency of third-part applications

Hello everybody,

I'm trying to make my application's setup dependent upon a specific version
of a third-part application, i.e., I want the user can't install my product
if he/she has not already installed another software in which my application
depends.
I know in advance the Update Code of this application (that, of course, is
also installed from an MSI file) and wrote the following code:

*<?define ThirdPartAppVersion = "3.8.5" ?>
<?define ThirdPartAppUpgradeCode="19F5AC25-ETC..."?>
<Upgrade Id="$(var.ThirdPartAppUpgradeCode)">
  <UpgradeVersion OnlyDetect='yes' Property='NOTFOUND'
Minimum='$(var.ThirdPartAppVersion)' Maximum='$(var.ThirdPartAppVersion)' />
  <Property Id="NOTFOUND" Secure="yes" />
</Upgrade>
<CustomAction Id='ThirdPartAppInvalid' Error='Third Part Application not
found in the correct version.' />
<InstallExecuteSequence>
  <Custom Action='ThirdPartAppInvalid'
After='FindRelatedProducts'>NOTFOUND</Custom>
</InstallExecuteSequence>
*

But the custom action is never activated, being the third-part application
installed in the correct version or not! I'm in doubt if the Upgrade tag was
design to execute such a function (checking another application status,
without interfering with it).

Anybody know what can be wrong with my code? Or anybody know another way to
do the same think in a more elegant way?

Thanks in advance,
Volnei
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to