I have a WIX installer which needs to install files to two directories. In one directory we need to install a 32-bit version of the file, and in another, the 64-bit version.
However, the files have the same filename, which seems to cause WIX to merge them together and just store a single copy in the MSI.
Basically, I want the a directory structure similar to the following:
c:\Program Files\FooApp\MyLib.dll
c:\Program Files (x86)\BarApp\MyLib.dll
with the respective 32- and 64-bit versions of MyLib.dll.
The two files are currently in our .wxs file as separate File elements with separate ID's and stored as separate components. However, when I run the installer, it installs the 64-bit version of the file to both locations, and if I extract the contents of the MSI with Dark.exe, it also shows both components have the same Source attribute.
Is there a way to convince WIX to store both files independently and ensure they're each installed to the right directory?