Good point.  In my case, the -arch switch is always being correctly set.  That 
may make a significant difference.

--
John Merryweather Cooper
Build & Install Engineer – ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com] 
Sent: Friday, March 21, 2014 12:26 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] util:RegistrySearch “Registry key not found” when 
using variable inside Win64=“$(var.Win64)”

I also stopped using Win64, but you need to make sure that the -arch flag is 
being passed on the command line to candle and light.  One way to do this is to 
add the InstallerPlatform MSBuild Property to your project file.  You can 
unload your project file, and edit it, adding the following statements as 
needed.

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64'
">
   ......
     <InstallerPlatform>x64</InstallerPlatform>
 </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86'
">
   ......
     <InstallerPlatform>x86</InstallerPlatform>
 </PropertyGroup>

Then you can observe that -arch will now be passed to the tools, and you do not 
need to use the Win64 flag in most situations.

I have also observed that when I use a preprocessor string $(var.SomeValue) in 
attributes like Package/@InstallerVersion or Package/@Platform Visual Studio 
displays the warning that you posted on the other site, but it seems to not 
matter, so I ignore it.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/util-RegistrySearch-Registry-key-not-found-when-using-variable-inside-Win64-var-Win64-tp7593659p7593672.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to