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.
If you try to install the Windows Phone SDK 7.1 or XNA Game Studio on Windows 8, you may encounter an XNA Game Studio setup failure.
How to work around this issue
If you run into this issue, here are steps that you can use to work around it:
What to do if the workaround doesn’t help
If you have tried the above steps and setup still fails, you are running into a different issue than the one described above, and you will have to look at the setup log files to determine the root cause.
If you are installing the Windows Phone SDK 7.1, you can use the log collection tool to gather your setup log files. This log collection tool will create a file named %temp%\vslogs.cab.
If you are installing XNA Game Studio, you can find log files at the following locations:
Once you have gathered your setup log files, please upload them to a file server of your choice (such as http://skydrive.live.com), and post a link to the log files in the App Hub Forums or in a comment on my blog to get additional support.
What is causing this failure behind the scenes
XNA Game Studio installs a version of the Games for Windows – LIVE Redistributable behind the scenes. Some older versions of the Games for Windows – LIVE Redistributable attempt to install and use a file that is being installed by Windows 8, and the older versions of the redistributable are not compatible with the newer version of the file that is installed by Windows 8. Newer versions of the Games for Windows – LIVE Redistributable are compatible with Windows 8, and if you pre-install the new redistributable before installing XNA Game Studio, setup will recognize that it is already there and use the new version instead of trying to install the old version.
The reason this issue also impacts the Windows Phone SDK 7.1 is that this SDK installs XNA Game Studio behind the scenes, which in turn installs the Games for Windows – LIVE Redistributable behind the scenes.
<update date="7/12/2012"> Added a note about installing the Windows Phone SDK 7.1.1 Update after installing the Windows Phone SDK 7.1 to fix an emulator issue on Windows 8. </update>
<update date="7/22/2012"> Fixed broken link to the Windows Phone SDK 7.1.1 Update </update>
<update date="10/30/2012"> Removed outdated reference to the Windows 8 consumer preview. This post applies equally to the final release of Windows 8. </update>
<update date="12/21/2015">Fixed broken download link for Games for Windows - LIVE Redistributable. </update>
That's for solving this
Thanks man! I spent a couple of hours before trying to get it to install (I was actually using your previous blog posts as a reference) before I finally came across this. Now it works like a charm.
I'm try it, thank for help.
Great, this is working.
It works for installation but then it will give the following error:
Error 1 A numeric comparison was attempted on "$(SPAFileMarker)" that evaluates to "−1" instead of a number, in condition "'$(SPAFileMarker)' > '-1'". sunset
And here is someone else with the same problem:
Hi K - We haven't seen that SPAFileMarker error in our internal testing so far. Would it be possible for you to enable diagnostic MSBuild logging, reproduce this failure, then upload the log file to a file server (such as http://skydrive.live.com) so I can take a closer look?
You can enable diagnostic MSBuild logging by doing the following:
1. In Visual Studio 2010, go to the Tools menu and choose Options...
2. Expand the Projects and Solutions item and choose Build and Run
3. Change the MSBuild project build output verbosity from the default (Minimal) to Diagnostic.
4. Re-run your build and let it fail.
5. Copy and paste the contents of the Visual Studio output window into a text file.
Thanks a lot!!!
I have an existing XNA + windows form integration application.
I am just wondering if it is possible to change the windows form part to the new metro style in windows 8 using your work around.
Is it feasible to do?
Thank you SOOO Much
Hi Lam Le - The workaround in this blog post is only applicable when installing XNA Game Studio on Windows 8. Using the workaround will not allow the XNA Framework to be used in Metro style applications. The XNA Framework cannot be used as-is in Metro style applications because it uses APIs that are not available in that environment.