Xbox LIVE Indie Games
Sort Discussions: Previous Discussion Next Discussion
Page 1 of 1 (1 posts)

What do I need to make XNA Framework games run on other computers?

Last post 5/19/2007 9:52 PM by The ZMan. 0 replies.
  • 5/19/2007 9:52 PM

    What do I need to make XNA Framework games run on other computers?

    Rest assured that XNA Framework games will run on Windows XP, Vista and 7 as long as you have the correct dependencies installed and all your content in the right place. Its VERY unlikely to be a bug so please check everything very carefully before asking.

    For games built with the 1.0 XNA Framework:

    1. .NET Framework 2.0 - included as an OS component on Vista so not required to install there.
    2. DirectX 9.0c *See note below
    3. XNA Framework Redistributable 1.0

    For games built with the 2.0 XNA Framework:

    1. .NET Framework 2.0 PLUS the C++ 2005 SP1 Redist -OR- .NET Framework 2.0 SP1
      Some notes on these dependencies:
      • The .NET Framework 2.0 is included as an OS component on Windows Vista and Windows Server 2008, so you only need the C++ Redist for these operating systems.
      • The .NET Framework 2.0 SP2 is included as an OS component on Windows 7, so you do not need to install the .NET Framework 2.0 or the C++ redist for this operating system.
      • The standalone .NET Framework 2.0 SP1 installer will not run on Windows Vista/7 - you must install 2.0 SP1 bits by installing either Vista SP1 or the .NET Framework 3.5.
      • You may have either of these 2 already installed by other applications on your system (such as Visual Studio 2005 SP1 or the Games For Windows - LIVE Redistributable), but don't rely on them already being installed if you are writing an installer.
    2. DirectX 9.0c *See note below
    3. XNA Framework Redistributable 2.0
    4. Games that create a GamerServicesComponent/use live networking REQUIRE a full XNA Game Studio 2.0 install.  The Games for Windows - LIVE Redistributable is NOT sufficient since there are non-redistributable components in XNA Game Studio 2.0 that are required.  This will also satisfy the VC++ 2005 SP1 redist requirement, you don't need both.

    For games built with 3.0 XNA Framework:

    1. .NET Framework 2.0 or .NET Framework 3.5, depending on whether or not your game uses .NET 3.5 features.  Note that the .NET Framework 2.0 is included as an OS component on Windows Vista and Windows Server 2008, and the .NET Framework 2.0, 3.0 and 3.5 are included as OS components on Windows 7.
    2. XNA Framework Redistributable 3.0 - the C++ redist and the relevant DirectX components are included in the XNA Framework Redistributable 3.0 and do not need to be installed separately.
    3. Games that create a GamerServicesComponent/use live networking REQUIRE a full XNA Game Studio 3.0 install (see this thread).  The Games for Windows - LIVE Redistributable is NOT sufficient since there are non-redistributable components in XNA Game Studio 3.0 that are required.

    For games built with 3.1 XNA Framework:

    1. .NET Framework 2.0 or .NET Framework 3.5, depending on whether or not your game uses .NET 3.5 features.  Note that the .NET Framework 2.0 is included as an OS component on Windows Vista and Windows Server 2008, and the .NET Framework 2.0, 3.0 and 3.5 are included as OS components on Windows 7.
    2. XNA Framework Redistributable 3.1 - the C++ redist and the relevant DirectX components are included in the XNA Framework Redistributable 3.1 and do not need to be installed separately.
    3. Games that create a GamerServicesComponent/use live networking REQUIRE a full XNA Game Studio 3.1 install (see this thread).  The Games for Windows - LIVE Redistributable is NOT sufficient since there are non-redistributable components in XNA Game Studio 3.1 that are required.

    For games built with 4.0 XNA Framework (and 4.0 refresh):

    1. .NET Framework 4 Client Profile or .NET Framework 4 Full, depending on whether or not your game uses features that are in Full but not Client.
    2. XNA Framework Redistributable 4.0 (and 4.0 Refresh) - the C++ redist and the relevant DirectX components are included in the XNA Framework Redistributable 4.0 and do not need to be installed separately.
    3. Games that create a GamerServicesComponent/use live networking REQUIRE a full XNA Game Studio 4.0 install (and Game Studio 4.0 refresh)(see this thread).  The Games for Windows - LIVE Redistributable is NOT sufficient since there are non-redistributable components in XNA Game Studio 4.0 that are required.

    You do NOT need to install Visual C# Express, Visual Studio or XNA Game Studio unless you require any of the following:

    • 2.0, 3.0, 3.1 or 4.0 games using GamerServices or Microsoft.Xna.Framework.Net.*
    • XnaPack utility to create and/or deploy .ccgame packages
    • Runtime usage of content pipeline creation components (such as in the WinForms samples)


    *DirectX note for XNA 1.x and 2.0 apps: Don't assume you already have it even if other games run - there are optional parts which may not be on your computer. Run the web installer and it will check and add missing parts. Don't assume that because you have the latest SDK installed that it will work either as SDKs do not install the optional files from previous SDKs.
      We can not stress this point enough - its the most common reason for XNA apps failing and we often see people who ignore this step because they think they know better.

    If the application still doesn't run after installing the components listed above, then check the following:

    1. Follow the advice in this thread - you may find the exception is happening in your code.
    2. Try some of the samples - if they run then the problem is in your code. Start with the empty Game template as it uses no content and has the minimal set of dependencies.
    3. Check out Process Monitor (formerly FileMon) - this will help you identify if you have missing DLLs, missing content or content in the wrong place.

     

Page 1 of 1 (1 posts) Previous Discussion Next Discussion