Richard, Thanks a lot. That solved my problem. I really appreciate all your help. -Sam.
On Fri, Aug 14, 2009 at 5:36 AM, Richard Hollis <richhol...@gmail.com>wrote: > Hi Sam > > Have a look at these: > > http://stackoverflow.com/questions/471424/wix-tricks-and-best-practices > > http://www.brianpeek.com/blog/archive/2007/11/13/x64-development-with-net.aspx > http://stackoverflow.com/questions/516730/visual-studio-any-cpu-target > > There are some good approaches that I've used for Wix and x86/x64 in the > first link. > > Assuming all your projects are AnyCPU (and there is no special reason why > you need x64 explicitly) then they will run in the correct architecture on > the installing machine irresepctive of whether its an x86 or x64 Wix > project. As AnyCPU determines this (see other two links). > > Just use the VS Configuration Manager to set AnyCPU for your non-wix > projects that are in your solution that make up your MSI components for the > different configurations. You still use x86/x64 for Wix but you set AnyCPU > for any non-wix project in the VS config manager. You also need to create a > global include file and set your Package/@Platform attribute in your > product > file. Doing it this way means you can then avoid all the Win64= attributes > too. > > <?xml version="1.0" encoding="UTF-8"?> > <Include> > <?define Product_Version = "1.0.$WCREV$.0" ?> > > <?if $(var.Platform) = x86 ?> > <?define Product_Name = "Foo v1.0.$WCREV$.0 (32bit)"?> > <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?> > <?else?> > <?define Product_Name = "Foo v1.0.$WCREV$.0 (64bit)"?> > <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> > <?endif?> > > </Include> > > --- > > <Product Id="TODO" Name="!(loc.Product_Name)" Language="1033" > Version="$(var.Product_Version)" Manufacturer="Foobar" > UpgradeCode="TODO"> > > <Package InstallerVersion="200" Compressed="yes" > Platform="$(var.Platform)" > InstallPrivileges="elevated" InstallScope="perMachine" > Manufacturer="Foobar" > /> > > <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="$(var.PlatformProgramFilesFolder)"> > ... > > Cheers > Richard > > 2009/8/13 Sam K <sam.re...@gmail.com> > > > Hi All, > > I wanted to upgrade from wix 2.0 to 3.0 and I have installed the latest > > version on my machine. I tried to create a new wix project using visual > > stduio 2008 and modified the old wix files to suit the new schema and > when > > I > > tried to build, I noticed that I can only choose either x86/x64 platform. > > Wix 2.0 had Any CPU option in it and I can't find it in 3.0. Can anybody > > tell me whether it was removed? > > All the code we have is .net and it was useful when there was Any CPU > > platform option. Our dev machines are 32 bit and our qa/prod machines are > > 64 > > bit. > > > > Also I cannot build it for platform x86 because I have a component which > is > > x64. And if I build it for x64 I cannot test the msi on my machine. > > > > Error 2 ICE80: This package contains 64 bit component 'INSTALLDIRREG' but > > the Template Summary Property does not contain Intel64 or x64. > > > > Can anybody please tell me if there is a solution for my problem? > > > > > > Thanks, > > Sam. > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users