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

Reply via email to