Unfortunately MSI packages marked 32-bit simply cannot install files into a
64-bit directory, and a package marked 64-bit cannot be used at all on a
32-bit platform. And a package cannot be marked for both bitnesses.

It is a limitation of Windows Installer. You have to do two packages (one
for each platform) and possibly use a bootstrapper to select the package to
use based on the platform you are installing on.

You can make the 32-bit package refuse to install itself on the 64-bit
platform by using a launch condition, if you wish, so that the correct
package is used.

-----Original Message-----
From: James Newton-King [mailto:james.newtonk...@newtonsoft.com] 
Sent: Sunday, May 16, 2010 11:52 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] A WiX installer that installs to "Program Files"
directory on both x86 and x64

I have a .NET application that runs on both x86 and x64. I'd like to have a
32 bit WiX installer (so it that will work on both platforms) but I'd like
it to install to /Program Files/ rather than /Program Files (x86)/ on 64 bit
operating systems.

How would you go about doing this?

My idea was to assign the ProgramFilesFolder or ProgramFiles64Folder value
to my own property, depending on whether it was a 64 bit environment or not,
and then use that property value on the directory. I have very little
experience with WiX so if this idea is even possible I have no idea. If it
is what would you test on to see if it is an x64 environment? Also how would
you then assign a property value from ProgramFilesFolder or
ProgramFiles64Folder depending on the earlier 64 bit environment test.

Any help is appreciated!


~ James
----------------------------------------------------------------------------
--

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


------------------------------------------------------------------------------

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

Reply via email to