If you ever need to read a section of the registry that differs from the
bitness of the process you are executing in you can use this Windows API,
RegQueryValueEx
(http://msdn.microsoft.com/en-us/library/ms724897(v=vs.85).aspx).  You can
change the section of the registry being read with the samDesired parameter
(more details:
http://msdn.microsoft.com/en-us/library/ms724878(v=vs.85).aspx).

Unforunately there is no native .NET equivalent method for doing this.  I
created a registry utility helper class for my DTF custom actions that
pinvokes these API calls so that I can easily read both sections of the
registry as needed, mostly for detecting various prerequisites.

Obviously, this can't work with Windows Installer's native way for reading
registry keys (AppSearch) which is preferred but it gets the job done.

-Mike

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-Search-in-x86-installers-doesn-t-work-properly-on-x64-machines-tp6239779p6242708.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to