We had a similar requirement. This is what we ended up using...

---
<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"; >
  
  <!-- 
  Have to suppress ICE80 warnings for this to work.
  -->
  <Property Id="APPFABRIC">
    <RegistrySearch Id="AppFabricRegistry" Type="raw" Root="HKLM"
Key="SOFTWARE\Microsoft\AppFabric\v1.0" Name="ProductVersion" Win64="no"
/>
  </Property>
  <Property Id="APPFABRICX64">
    <RegistrySearch Id="AppFabricRegistryX64" Type="raw" Root="HKLM"
Key="SOFTWARE\Microsoft\AppFabric\v1.0" Name="ProductVersion"
Win64="yes" />
  </Property>

  <Condition Message="Microsoft AppFabric was not found on this machine.
Please install Microsoft AppFabric.">
    <![CDATA[(APPFABRIC OR APPFABRICX64) OR Installed]]>
  </Condition>
</Include>
---

Cheers
Sharad Patel
Winscribe NZ

-----Original Message-----
From: Deepika Gakhar [mailto:deepi...@microsoft.com] 
Sent: Wednesday, 16 February 2011 8:24 a.m.
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] RegistrySearch under Wow6432Node

Hi,

I'm trying to set a property based on the registry key search. The
registry key as seen in reg editor is
"HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x64"

I tried 2 combinations -

1.   Set win64="no" and specify path without explicit Wow6432Node.

    <Property Id="VCREDIST2010" >
    <RegistrySearch Id="vcredist2010key" Win64="no"
Key="SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x64" Root="HKLM"
Type="raw" />
  </Property>


2.  Set win64="no" and specify path with explicit Wow6432Node in the
path.

 <Property Id="VCREDIST2010" >
    <RegistrySearch Id="vcredist2010key" Win64="no"
Key="SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x64"
Root="HKLM" Type="raw" />
  </Property>
But none of them work and the property never gets set. Could someone
please guide me as to how I could correctly search the reg key.

Thanks in advance.

Best Regards,
Deepika
------------------------------------------------------------------------
------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to