The first example (Property Id="JDK32") will work for both x86 & x64
platforms. The second property is unnecessary. Modify the example
LaunchCondition appropriately.

MSI's must be authored for x86 or x64 platforms. x86 MSI's will install
on x64 systems & be redirected to the WOW64 areas automatically. You
should however test this thoroughly before shipping
(http://www.joyofsetup.com/2007/09/24/test-your-setups-virtually/)

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: Asiri Wanigarathne [mailto:waas...@gmail.com] 
Sent: 22 April 2010 02:30
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Dependency Conditionals?

hi

try reading the JDK 32 bit and JDK 64 bit registry entries to 2
properties such as JDK32 and JDK64 and then use a condition combining
those two properties to evaluate either of those present in the
registry.
Eg:
    <Property Id="JDK32">
      <RegistrySearch Id="regJDK32" Root="HKLM" Type="raw"
Key="SOFTWARE\JavaSoft" Name="Java Runtime Environment" />
    </Property>
    <Property Id="JDK64">
      <RegistrySearch Id="regJDK32" Root="HKLM" Type="raw"
Key="SOFTWARE\JavaSoft\Wow6432" Name="Java Runtime Environment" />
    </Property>

  <Condition Message="This application requires JDK">
    <![CDATA[ JDK32 = "" AND JDK64 = ""  ]]>
  </Condition>


Regards,
Asiri Wanigarathne

http://www.asiri.name


On 22 April 2010 02:44, jeff00seattle <jeff_tan...@earthlink.net> wrote:

>
> Hi
>
> Is there a way to define external product dependency conditionals 
> within WiX authoring, and if this conditional is not meet then do not 
> install?
>
> I am creating a WiX for a product that has a dependency to an another 
> product, or it will not run.
>
> The dependency product is JDK 32-bit build. When JDK 32-bit build is 
> installed on different architectures, it has different registry
settings:
> a. JDK 32-bit build on 32-bit hosts: HKLM\SOFTWARE\JavaSoft\Java 
> Runtime Environment b. JDK 32-bit build on 64-bit hosts: 
> HKLM\SOFTWARE\JavaSoft\Wow6432\Java
> Runtime Environment
>
> Thereby, I am looking to check registry for dependency product before 
> excuting MSI, and only install if this dependency is satisfied.
>
> Thanks
>
>
>
> -----
> Thanks
> Jeff in Seattle
> --
> View this message in context:
> http://n2.nabble.com/Dependency-Conditionals-tp4938089p4938089.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> -------- _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to