Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8

How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8

Rate This

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:

  1. Download and install the latest version of the Games for Windows – LIVE Redistributable from http://www.xbox.com/en-US/LIVE/PC/DownloadClient
  2. If you are installing the Windows Phone SDK 7.1, re-run setup and choose to repair it.  This will re-run the previously failing XNA Game Studio installers and they should install correctly this time.
  3. If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time.
  4. If you are planning to do Windows Phone development, you should also install the Windows Phone SDK 7.1.1 Update after installing the Windows Phone SDK 7.1.  This update fixes an issue that prevents the emulator in the Windows Phone SDK 7.1 from working correctly on Windows 8.

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:

  • XNA Game Studio 4.0 Refresh - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA Game Studio 4.0 - %temp%\XNA Game Studio 4.0 Setup\Logs
  • XNA Game Studio 3.1 - %temp%\XNA Game Studio 3.1 Setup\Logs
  • XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0 Setup\Logs
  • XNA Game Studio 2.0 - %ProgramFiles%\Microsoft XNA\XNA Game Studio\v2.0\Setup\Logs

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>

 

  • Many thanks!

  • Thanks!!!

  • 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.

  • Thank you!

  • I'm try it, thank for help.

  • Great, this is working.

    Thank you.

  • 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:

    forums.create.msdn.com/.../599324.aspx

  • Thanks :)

  • 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!!!

  • Thanks a lot!!!

  • Hi,

    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.

Page 1 of 8 (115 items) 12345»
Leave a Comment
  • Please add 4 and 7 and type the answer here:
  • Post