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

Reply via email to