Looks like you're missing the point here Tim. It's Windows Installer which 
modifies the path when you're installing a 32-bit package. WiX has nothing to 
do with it. Check a verbose log if you don't believe us & you'll see something 
called WIN64DUALFOLDERS modifying your path for you.

As David says, if you want to install components to 64-bit locations (e.g. 
Program Files) on 64-bit platforms, you need to use a package built for 64-bit 
systems. Square holes, round pegs & all that.

I'll repeat this (again) for the benefit of people who still don't get it. WiX 
builds Windows Installer packages, nothing more. If Windows Installer doesn't 
support it (and/or you can't do it in a custom action) it's not possible.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: David Watson [mailto:dwat...@sdl.com] 
Sent: 21 March 2011 15:21
To: Tim St. Clair; General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] 64-bit java registry detection?

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



------------------------------------------------------------------------------
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

Reply via email to