Thanks for the reply... I'll implement it like this too.  

-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: March-28-2013 12:23 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VS Building using Different platforms

I am doing the same thing, you need to have 2 MSI's one for 32 and 64 bit:

I modify the project file:

32 bit solution file:
GlobalSection(SolutionConfigurationPlatforms) = preSolution
                DebugX86|Mixed Platforms = DebugX86|Mixed Platforms
                ReleaseX86|Mixed Platforms = ReleaseX86|Mixed Platforms

32 bit project file:
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    <OutputPath>$(SolutionDir)..\bin\</OutputPath>
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
    <DefineConstants>Debug;ProductVersion=$(TLBuildNumber)</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86'
">
    <OutputPath>$(SolutionDir)..\bin\</OutputPath>
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
    <DefineConstants>ProductVersion=$(TLBuildNumber)</DefineConstants>
    <SuppressPdbOutput>True</SuppressPdbOutput>
  </PropertyGroup>

64 bit solution file:

GlobalSection(SolutionConfigurationPlatforms) = preSolution
                DebugX64|Mixed Platforms = DebugX64|Mixed Platforms
                ReleaseX64|Mixed Platforms = ReleaseX64|Mixed Platforms

64 bit project file:
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    <OutputPath>$(SolutionDir)..\bin\</OutputPath>
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
    <DefineConstants>Debug;ProductVersion=$(TLBuildNumber)</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64'
">
    <OutputPath>$(SolutionDir)..\bin\</OutputPath>
    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
    <DefineConstants>ProductVersion=$(TLBuildNumber)</DefineConstants>
    <SuppressPdbOutput>True</SuppressPdbOutput>
  </PropertyGroup>

-----Original Message-----
From: Marc Beaudry [mailto:mbeau...@matrox.com]
Sent: March-28-13 11:55 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] VS Building using Different platforms

Hello

 

I searched and can't find anything on the subject, my guess is my search is
inaccurate since I am not sure how to explain this.

 

I have an MS VisualStudio 2012 wix project that when I compile my solution
it I output an MSI using the newly built binaries.

 

That being said I would like to create 2 MSIs one 32bit OR one 64bit MSI
depending on the build configuration I selected (32 or 64bit).

 

Can I change the  Platform value in the Package tag depending on the build
configuration selected?

Can I have 2 different Product.wxs files one for 32 and one for 64 and the
build selects the appropriate one depending on the build config.

 

Are there better ways of doing this?

 

Essentially my end goal is to have one project that outputs two MSIs,
32/64bit.

 

Thanks for the advice,

Marc

 

----------------------------------------------------------------------------
--
Own the Future-Intel&reg; Level Up Game Demo Contest 2013 Rise to greatness
in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game on Steam. $5K
grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
Own the Future-Intel&reg; Level Up Game Demo Contest 2013 Rise to greatness
in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game on Steam. $5K
grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to