For a x64 MSI this should work, for a Win32 MSI you should use 
"Software\MyApplication\MyApp" and let the MSI engine handle the WOW6432 stuff 
:)

Best regards,


Albert van Peppen
Senior System Engineer
Insad Grafisch b.v.

-----Oorspronkelijk bericht-----
Van: loyalty Reddy [mailto:reddy.loya...@gmail.com] 
Verzonden: 30 January 2012 13:34
Aan: wix-users@lists.sourceforge.net
Onderwerp: [WiX-users] RegistrySearch

Hi,

I am using Windows 7, 64 bit.
I ma having trouble reading if a key exists in registry. The key that I am 
using for is in HKLM\Software\Wow6432Node\MyApplication\MyApp.

I am using the following code:

 <Property Id="ISPRESENT">
  <RegistrySearch Id="PathSearch"
      Root="HKLM"
      Type="raw"
      Key="Software\Wow6432Node\MyApplication\MyApp"
      Name="DbPath"
      Win64="yes" />
 </Property>

Whether or not DbPath exists, the ISPRESENT is not set. I compared the 
ISPRESENT value with 1 and #1, nothing works.
I also tried not using Wow6432Node, still it fails.

what am I doing wrong?

Thanks,
Reddy
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to