One option I have used is to write a .Net 4.0 DTF custom action that allows you 
to open the 64 bit registry from a 32 bit CA using 
"RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64)". 
No good if .Net 4.0 is not on your target but there are ways to do the same 
thing in native code or interop. 
 
Neil
 
Neil Sleightholm
X2 Systems Limited
n...@x2systems.com <mailto:n...@x2systems.com> 
 

________________________________

From: Sharad Patel [mailto:spa...@winscribe.com]
Sent: Wed 08/12/2010 09:57
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Can RegistrySearch read 64bit hive from 32bit package?



We are currently using the v3.5 RC build.

We have a 32bit installer that detects AppFabric using the following bit
of WiX code:


  <Property Id="APPFABRIC">
    <RegistrySearch Id="AppFabricRegistry" Type="raw" Root="HKLM"
Key="SOFTWARE\Microsoft\AppFabric\v1.0" Name="ProductVersion" />
  </Property>

  <Condition Message="Microsoft AppFabric was not found on this machine.
Please install Microsoft AppFabric.">
    <![CDATA[APPFABRIC <> ""]]>
  </Condition>


This works fine on 32bit systems but we get an error when the installer
is run on x64 systems because AppFabric registry key only exists in the
64bit hive. If I try to use the Win64="yes" attribute on the
RegistrySearch element then I get an "error LGHT1076: ICE80". All the
searching I have does seems to suggest that 32bit packages can't access
64bit hive.

Our application and the installer are both 32bit only. Of course without
the RegistrySearch condition the installer works just fine on x64
systems but we would like to be able to detect AppFabric.

So far writing an unmanaged (or managed) custom action seems like our
only option.
Is there a way to achieve this without a custom action?


Thanks
Sharad Patel



------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to