I also deploy both x86 and x64 packages in my bundle.  To clarify the use of
preprocessor statements in your code snippet would cause the pre-compiler to
include only one of the two code fragments at compile time.  Probably not
what you want.

You can create two separate MSI projects for you application, one for x86
and the other for x64, and then create a bundle.exe with a chain that
includes both packages.  In the bundle you will have two MsiPackage elements
with different IDs and in the x86 MsiPackage/@InstallCondition use (NOT
VersionNT64).

There are a number of examples out there of how to create a single msi
project which when built twice produces a x86 MSI and a x64 msi.
http://alekdavis.blogspot.com/2011/05/build-32-and-64-bit-installers-using.html

There are several things in this sample, which over time I realized could be
done differently, but it was a helpful starter.  I prefer to use:
    <InstallerPlatform>x64</InstallerPlatform> in the wixproj file,
Product/@Id='*'
and a single Product/@UpgradeCode since I do not allow both platform
variants of my driver on the same target. system.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Adding-Registry-Entries-in-both-32-and-64-Bits-tp7597760p7597814.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to