Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS with no warranties, and confer no rights. Additionally, views expressed herein are my own and not those of my employer, Microsoft.
Last week, a customer asked me a question about the FileWriter MSAS sample application that ships in the Windows Media Center SDK for Windows Vista. This customer was running an x64 build of Windows Vista and could not get FileWriter to correctly create a log file when they built and ran it. After some investigation, we discovered that the customer was compiling a 32-bit version of this binary, and it was failing to work as expected because all of the COM objects that it was attempting to interact with are only registered in the native 64-bit registry on x64 builds of Windows Vista.
We were able to resolve this issue by building a native x64 version of this binary. Unfortunately, we did not include an x64 build configuration in the FileWriter sample application Visual Studio project/solution files. However, you can manually add x64 build configurations in order to enable this scenario in the Windows Media Center SDK for Windows Vista RC1 or RC2.
Before these steps will work, you need to make sure that you have the Visual Studio 2005 x64 compilers and tools installed. This feature is available in the Visual Studio 2005 setup UI under the Visual C++ language tools node, but it is unchecked by default. If you performed a default install of Visual Studio 2005, you will need to go to Add/Remove Programs, enter Visual Studio 2005 setup maintenance mode and add the x64 compilers and tools feature.
Once you have this feature installed, you can use the following steps in the Visual Studio 2005 IDE in order to add x64 build configurations and then build a native x64 version of the FileWriter sample application:
Notes:
We have fixed the FileWriter solution and project files for the Windows Media Center SDK and this fix will be included in the final release of the SDK. In the meantime, I have posted updated vcproj and sln files for the FileWriter sample that you can copy onto your system that has the Windows Media Center SDK for Windows Vista RC1 or RC2 if you would like to avoid manually configuring the solution/project files using the above steps.
Another thing to point out is to be *extremely careful* in the Configuration Manager dialog box. Its grid very buggy and its easy to end up with configurations you don't want. Hopefully some of this has been fixed in SP1...