Use Win64="yes" in your RegistrySearch Elements to force them to check
the normal areas of the Registry rather than the WOW6432Node. You will
get ICE warnings for this in an x86 package.

However you can't have one MSI which works natively for both x86 & x64
platforms.
An MSI has a platform attribute which must be set to "Intel" for x86
packages or "Intel64" for x64 packages (can also use "AMD64" for x64
packages but it's deprecated by "Intel64"). An x86 package will install
on x86 and x64 platforms but you will not be able to write to x64
specific locations such as the normal registry areas (everything gets
redirected to WOW6432Node) or the normal "Program Files" directory
(again everything gets redirected to "Program Files (x86)"). You can see
this in a verbose log quite easily.
If you want or need to access x64 specific areas of the machine you need
to create an x64 package which won't even run on an x86 platform.
Hence that second post on your thread on StackOverflow is very
misleading if taken as read. Having 2 MSI's might not be a desirable
solution for you but it's the only one you're going to get if you want
to use Windows Installer to deploy your product.

Good Luck.

Palbinder Sandher 
Software Deployment & IT Administrator
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: Vishwajit Walke [mailto:vishwajit.wa...@matrikon.com] 
Sent: 13 January 2010 08:51
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to handle Registry Redirection through WIX
on64-bit Platform

Hi,

I'm facing issues while fetching the Installation Path of a 64-bit
component through its Registry Entry on 64-bit Platform. Through WIX,
when I'm searching for a particular registry key, because of registry
redirection it is redirected to WOW6432node where registry keys doesn't
exist.  So, through WIX, is there any way to look into the 64-bit
Registry View with only Single MSI creation?

Here are some of my findings about the same :


1.       A component must be marked as Win64="yes" in order to cause
registry entries to be written under the 64-bit registry hive instead of
the WOW64 registry hive.

2.     Refer
http://stackoverflow.com/questions/1838009/platform-identification-in-wi
x-3-0 , telling that we can use the Condition statement (documentation
here<http://wix.sourceforge.net/manual-wix2/wix%5Fxsd%5Fcondition.htm>)
which will detect at install time which platform the installer is
running on. This allows you to create just one installer which will work
on all platforms.

The test for 64bit platform is VersionNT64 and conversely the test for
non 64bit platforms is NOT VersionNT64

For example:

<Component Id="SomeComponentId" Guid="SomeGuid">

<Condition>

<![CDATA[NOT(VersionNT64)]]>

<Condition>

<File Id="SomeFile" Name="Somefile.exe"
Source="$(var.UI.TargetDir)\ProjectOutput.exe" />

</Component>



________________________________
READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently
insecure.

Internet messages may be corrupted, incomplete, misdirected or may
incorrectly identify the sender. Therefore, nothing in this message or
attachments may be considered legally binding.

THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY TO
WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED.

If you are not the intended recipient or their authorized agent, you may
not forward or copy this information and must delete or destroy all
copies of this message and attachments received.

If you have received this communication in error, please notify Matrikon
Inc. by telephone at (780) 448-1010 or emailing ad...@matrikon.com.
------------------------------------------------------------------------
------
This SF.Net email is sponsored by the Verizon Developer Community Take
advantage of Verizon's best-in-class app development support A
streamlined, 14 day to market process makes app distribution fast and
easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to