I write installation sources all the time where the very same WXS files (and in 
fact the very same WIXPROJ files) are used to make both configurations. A very 
small amount of conditionals goes a long ways to making that work.

> From: steven.ogil...@titus.com
> To: wix-users@lists.sourceforge.net
> Date: Wed, 31 Jul 2013 12:55:27 +0000
> Subject: Re: [WiX-users] Need help, how to put a condition on a merge module 
> in Product.wxs [P]
> 
> Classification: Public
> I originally have two solutions for the Services installer, in the x86 
> product.wxs I have the 5 x86 merge modules, in the x64 product.wxs I have the 
> 5 x64 merge modules...
> So there are two sets of merge modules x86 compiled and x64 compiled
> 
> I am trying to make 1 solution using the configurations to build x86 MSI x64 
> MSI
> 
> Steve
> 
> -----Original Message-----
> From: Blair Murri [mailto:os...@live.com]
> Sent: July-31-13 1:23 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Need help, how to put a condition on a merge module 
> in Product.wxs [P]
> 
> You need one set of merge modules for x64 and another for x86, correct?
>  
> Use conditional compilation. You don't need all the merge modules in the x86, 
> correct? Why put them there?
>  
> Or am I missing something?
>  
> > From: steven.ogil...@titus.com
> > To: wix-users@lists.sourceforge.net; d...@agilityrecordbook.com
> > Date: Tue, 30 Jul 2013 16:19:37 +0000
> > Subject: Re: [WiX-users] Need help, how to put a condition on a merge 
> > module in Product.wxs [P]
> > 
> > Classification: Public
> > Yup I have the configuration set in the Solution file for my Services 
> > Solution, and in each MergeModule WIXProj I have set up x86/x64 
> > configurations so it is built twice once for x86 and once for x64 and 
> > placed in different folders wixlib/wixlibx64 (both merge modules and
> > wixlibs)
> > 
> > So I have 1 MergeModule project / 1 wixlib project but multiple 
> > configurations to handle the x86/x64
> > 
> > Looks like I am pooched...
> > 
> > Steve
> > 
> > -----Original Message-----
> > From: David Watson [mailto:dwat...@sdl.com]
> > Sent: July-30-13 12:11 PM
> > To: General discussion for Windows Installer XML toolset.; David 
> > Connet
> > Subject: Re: [WiX-users] Need help, how to put a condition on a merge 
> > module in Product.wxs [P]
> > 
> > Isn't the win64 setting on the component so you need to build a 64bit 
> > and a
> > 32 bit version of each merge module (or wixlib).
> > This is easily done with a shared .wxs file and a compilation setting.
> > 
> > I have 32 and 64 bit components all up my build tree just because one 
> > package needs a 32 and a 64 bit msi.
> > 
> > (another) Dave
> > 
> > 
> > -----Original Message-----
> > From: Steven Ogilvie [mailto:steven.ogil...@titus.com]
> > Sent: 30 July 2013 16:54
> > To: David Connet; General discussion forWindows Installer XML toolset.
> > Subject: Re: [WiX-users] Need help, how to put a condition on a merge 
> > module in Product.wxs [P]
> > 
> > Classification: Public
> > Sigh same merge modules just compiled under x86 and x64
> > 
> > Get the error:
> > 
> > Error       49      The merge module 'EnterpriseServicesMM_x64' contains a 
> > file
> > identifier,
> > 'fil2502525491FAEBF0E0D0ED1FE352E76D.9EFC3F5B_3D47_4233_A162_371DEF5D8
> > E92', that is duplicated either in another merge module or in a 
> > File/@Id attribute.
> > File identifiers must be unique.  Please change one of the file identifiers
> > to a different value.       C:\Dev\ Setup\Services_Setup\Product.wxs        
> > 282
> > 1   Services_Setup
> > 
> > <Feature Id="MergeModulesX86"
> >              Title="Merge modules for 32 bit OS"
> >              Level="1"
> >              Display="expand"
> >              ConfigurableDirectory="DIRECTORY_PATH_SERVICES">
> >       ...
> >       <MergeRef Id="ServicesMergeModule"/>
> >       <Condition Level="1">
> >         <![CDATA[NOT(VersionNT64) OR $(var.Platform) = "x86"]]>
> >       </Condition>
> >     </Feature>
> >     <Feature Id="MergeModulesX64"
> >              Title="Merge modules for 64 bit OS"
> >              Level="1"
> >              Display="expand"
> >              ConfigurableDirectory="DIRECTORY_PATH_SERVICES">
> >       ...
> >       <MergeRef Id="ServicesMergeModule_x64"/>
> >       <Condition Level="1">
> >         <![CDATA[VersionNT64 OR $(var.Platform) = "x64"]]>
> >       </Condition>
> > 
> > ...
> > <Merge Id="ServicesMergeModule" DiskId="1"
> > SourceFile="$(env.SharedServices)\Installers\wixlib\ServicesMergeModule.msm"
> > Language="1033"/> ...
> > <Merge Id="ServicesMergeModule_x64" DiskId="1"
> > SourceFile="$(env.SharedServices)\Installers\wixlibx64\ServicesMergeMo
> > dule.ms
> > m" Language="1033"/>
> > 
> > -----Original Message-----
> > From: David Connet [mailto:d...@agilityrecordbook.com]
> > Sent: July-30-13 11:10 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Need help, how to put a condition on a merge 
> > module in Product.wxs [P]
> > 
> > Assign them to a feature and condition the feature.
> > 
> > Dave
> > 
> > 
> > 
> > ----- Original Message -----
> > From: Steven Ogilvie <steven.ogil...@titus.com>
> > To: General discussion for Windows Installer XML toolset.
> > <wix-users@lists.sourceforge.net>
> > Cc: 
> > Sent: Tuesday, July 30, 2013 7:16 AM
> > Subject: Re: [WiX-users] Need help, how to put a condition on a merge 
> > module in Product.wxs [P]
> > 
> > Classification: Public
> > The 5 merge modules have <ComponentGroupRef Id="cmpgrp_Log4Net"/> of 
> > about 10 wixlibs The files in the MergeModules and WixLibs are built 
> > as AnyCPU however since I need to install the services for 64 bit OS 
> > and 32 bit OS I need two MSI's one for 32 and one for 64 bit
> > 
> > So I am not using any binary files that are specific for 32 bit or 64 bit, 
> > I just need to include the MergeModules in 1 product.wxs file The Merge 
> > Modules themselves are built x86 and x64 and are located in two different 
> > folders...
> > 
> > So the question is, HOW do I conditionally install the merge modules based 
> > on the OS bitness?
> > 
> > Thanks,
> > 
> > Steve
> > 
> > ----------------------------------------------------------------------
> > -------
> > -
> > Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent 
> > caught up. So what steps can you take to put your SQL databases under 
> > version control? Why should you start doing it? Read more to find out.
> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.c
> > lktrk _______________________________________________
> > 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 July-30-13
> > 11:53:30 AM.
> > 
> > The above classification labels were added to the message by TITUS Message 
> > Classification. For more information visit www.titus.com.
> > 
> >  
> > 
> > 
> > 
> > ----------------------------------------------------------------------
> > -------
> > -
> > Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent 
> > caught up. So what steps can you take to put your SQL databases under 
> > version control? Why should you start doing it? Read more to find out.
> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.c
> > lktrk _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > SDL PLC confidential, all rights reserved.
> > If you are not the intended recipient of this mail SDL requests and 
> > requires that you delete it without acting upon or copying any of its 
> > contents, and we further request that you advise us.
> > SDL PLC is a public limited company registered in England and Wales.  
> > Registered number: 02675207.
> > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 
> > 7DY, UK.
> > 
> > 
> > ----------------------------------------------------------------------
> > -------- Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent 
> > caught up. So what steps can you take to put your SQL databases under 
> > version control? Why should you start doing it? Read more to find out.
> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.c
> > lktrk _______________________________________________
> > 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 July-30-13 
> > 12:19:37 PM.
> > 
> > The above classification labels were added to the message by TITUS Message 
> > Classification. For more information visit www.titus.com.
> > 
> >  
> > 
> > 
> > 
> > ----------------------------------------------------------------------
> > -------- Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent 
> > caught up. So what steps can you take to put your SQL databases under 
> > version control? Why should you start doing it? Read more to find out.
> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.c
> > lktrk _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>                                         
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent caught 
> up. So what steps can you take to put your SQL databases under version 
> control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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 July-31-13 
> 8:55:25 AM.
> 
> The above classification labels were added to the message by TITUS Message 
> Classification. For more information visit www.titus.com.
> 
>  
> 
> 
> 
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent 
> caught up. So what steps can you take to put your SQL databases under 
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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