Hi,
By using @Win64="yes" you have successfully read the 64bit part of the registry, that is not the issue. This issue is 32 bit msi packages are not allowed/supposed access to 64 bit folders (program files) by windows, the WoW subsystem intercepts the calls and redirects them. You could try a file search for java.exe under the ProgramFiles64 folder to detect the JRE location, but I expect that you would get ice 80 errors. It's usually simpler in the long run to build 2 msi's from shared source that target both platforms. From: Tim St. Clair [mailto:timoth...@gmail.com] Sent: 21 March 2011 13:55 To: General discussion for Windows Installer XML toolset. Cc: David Watson Subject: Re: [WiX-users] 64-bit java registry detection? Is there any way to disable path translation itself? Our code && installer are 32-bit which we would like to keep (for legacy reasons), but we would still like to view 64-bit registry entries where possible. This seems like a gaping whole in functionality. Cheers, Tim On Mon, Mar 21, 2011 at 6:01 AM, David Watson <dwat...@sdl.com> wrote: The windows installer is finding the path from the registry correctly as C:\Program Files\Java\jre6, but your MSI is 32 bit so if you try to use it, it will automatically be converted to the 32 bit location. Best practice is to use a 64 bit msi to install 64bit or anycpu software onto 64 bit operating systems. -----Original Message----- From: Tim St. Clair [mailto:timoth...@gmail.com] Sent: 19 March 2011 18:23 To: wix-users@lists.sourceforge.net Subject: [WiX-users] 64-bit java registry detection? So I have the following WiX .xml which appears to translate the registry key information from what I see in the registry <!--Find the location of the Java installation--> <Property Id="JVMVERSION"> <RegistrySearch Id="JavaVersionSearch" Root="HKLM" Type="raw" Key="SOFTWARE\JavaSoft\Java Runtime Environment" Name="CurrentVersion" Win64="yes" /> </Property> <Property Id="JVMDIR"> <RegistrySearch Id="JavaDirSearch" Root="HKLM" Type="raw" Key="SOFTWARE\JavaSoft\Java Runtime Environment\[JVMVERSION]" Name="JavaHome" Win64="yes" /> </Property> <SetProperty Id="JVMLOCATION" Value="[JVMDIR]bin\java.exe" After="AppSearch"/> Expected Result (from regedit): C:\Program Files\Java\jre6 Actual Result: C:\Program Files (x86)\Java\jre6 There are no entires in the 32-bit registry. Thoughts? -- Cheers, Timothy St. Clair ----------------------------------------------------------------------------- - Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ----------------------------------------------------------------------------- - Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Cheers, Timothy St. Clair ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users