Hi,
Add a <Condition> right under <Product>. The message in the @Message
attribute will be shown whenever the condition is false, and setup is
aborted.
The condition should contain a Property that gets initialized with
<RegistrySearch> or <FileSearch> to find a registry value or file from the
other software to identify if it is installed.
Example:
<Product>
<Property Id="ADOBEREADER9INSTALLED">
<RegistrySearch Id="ADOBEREADER9INSTALLED_REGSEARCH"
Key="Software\Adobe\Acrobat Reader\9.0\InstallPath" Root="HKLM" Type="raw"
/>
</Property>
<Condition Message="[ProductName] requires Adobe Reader 9.0 Please make
sure you it installed.">ADOBEREADER9INSTALLED</Condition>
<...>
</Product>
Best regards,
Sebastian Brand
Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com
-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[email protected]]
Sent: Tuesday, September 01, 2009 14:46
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to check the prerequisite software install?
Hi Wix-users,
My software needs another software (Sybase) as the prerequisite.
Therefore I need to check whether Sybase has been installed in the machine
and show the warning message if it is not installed. How can I define the
condition in the installer?
Best regards,
Chunyan
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users