Classification: Public
Yes it was a pain in the a$$ to maintain two product.wxs files for the same 
project. Blending them to one file has made work so much easier.
I have the configuration set in the wix project file to handle whether it is an 
x86 debug/release or x64 debug/release build.

The issue I have is I am not sure which is proper, using </if $(sys.BUILDARCH) 
= 64 ?> or using <?if $(var.Platform) = x64 ?> for setting variables for either 
x86/x64

Same when installing a file for 32 bit or 64 bit (having 2 files but need to 
install only one depending on the bitness of the MSI and OS)

Thanks,

Steve

-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com]
Sent: January-22-14 4:53 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Confused... when installing a 32/64 bit MSI using 1 
product.wxs file

The link provided by eyoung100 was helpful to me in packaging some printer 
drivers, using a single MSI project with different build configurations to 
produce x86 and x64 packages.  The bundle then includes both packages and 
installs the one which is appropriate for the architecture of the target 
system.  The two variations of this approach that I took was:

1) In the MSBuild project configurations section as displayed in that link, add 
the following MSBuild property, which causes the -arch flag to get set by the 
build process.
<InstallerPlatform>x64</InstallerPlatform>
or
<InstallerPlatform>x86</InstallerPlatform>

2) Since the printer driver that I install must have all of the files (both
x86 and x64) 'pre-staged on the target system for the driver signing signature 
to validate,  when building x86 the above InstallerPlatform property causes all 
components to be marked for x86, and when x64, all components are marked for 
x64.  This means that the advice in the link to set the component attribute can 
be ignored, as it will be done based on the InstallerPlatform (-arch) flag.

Also if the VS solution is used to do the build, and if projects use the 'Any 
CPU' setting, when building this project it is necessary to actually select x86 
or x64 (or modify the project file so that one of those outcomes is selected).  
I have multiple projects which take this approach.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Confused-when-installing-a-32-64-bit-MSI-using-1-product-wxs-file-tp7591962p7591966.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 



 
This message has been marked as Public by Steven Ogilvie on January-22-14 
5:47:47 PM.

The above classification labels were added to the message by TITUS Message 
Classification. For more information visit www.titus.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to