Compartilhar via


Steps to install XNA Game Studio 4.0 without using the setup bootstrapper

A while back, I wrote a blog post describing how to extract the contents of the XNA Game Studio 2.0, 3.0 and 3.1 setup packages and install the components manually in case the normal installation process fails.  I just went back and updated that blog post to also list the steps for extracting and manually installing XNA Game Studio 4.0.

I’ve gone back and forth about whether or not to update this type of older blog posts in place as new product versions are released or post new ones.  In this case, I decided to update the existing post since I can then have a single location to point people to for all versions of XNA Game Studio.  However, I also wanted to post a new item about this to help improve visibility since I’m not sure how often folks go back and look at older content.

Here is a copy of the steps I added for XNA Game Studio 4.0.  Note - for the instructions below, if you are running a 64-bit version of Windows, you will need to use %programfiles(x86)% instead of %programfiles% for the installation paths.

Please refer to the previous post for instructions for all versions of XNA Game Studio.

To manually install XNA Game Studio 4.0 

  1. Download xnags40_setup.exe and save it to your hard drive

  2. Run xnags40_setup.exe /x to extract the contents to a folder of your choosing

  3. Go to the folder you extracted to in step 2 and run the MSI named redists.msi

    Note: This MSI will only display a small progress bar while it is installing and will not tell you when it is done.  When the progress bar disappears, continue to the next step.

  4. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\XLiveRedist.msi

  5. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Redist\XNA FX Redist\xnafx40_redist.msi

  6. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnaliveproxy.msi

  7. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_platform_tools.msi

  8. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_shared.msi

  9. Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_visualstudio.msi

  10. Go to the folder you extracted to in step 2 and run the MSI named arpentry.msi

<update date="11/8/2010"> Added a note about the %programfiles(x86)% path on 64-bit versions of Windows. </update>

<update date="11/21/2011"> Removed an incorrect step from the list. </update>

Comments

  • Anonymous
    December 05, 2010
    This is stupid and a waste of time. The person that wrote this article is an idiot.

  • Anonymous
    December 06, 2010
    On the contrary, this is very helpful to those few  of us  for whom the installation failed. Thanks, Aaron.

  • Anonymous
    February 05, 2011
    That it is true, this is very helpful, information.  Progamer, is this is so stupit, why do take the time to read it?

  • Anonymous
    March 05, 2011
    I am trying to install XNA game studio 4.0 to use with Visual Studio 2010.   I am getting the foolowing error about compatibility. <Visual Studio setup cannot run in compatibility mode.  For more information see the 'Installing' section in the Visual Studio Readme at "go.microsoft.com/fwlink I have a 4GB HP Pavilion dv7-1157cl running Win 7 premium 64 bit.

  • Anonymous
    March 06, 2011
    Thanks

  • Anonymous
    March 08, 2011
    Hi MrB at BHS - I posted an item about how to work around that compatibility mode error at blogs.msdn.com/.../10064318.aspx.  Hopefully the steps there will help resolve that error for you.

  • Anonymous
    May 23, 2011
    big THX!

  • Anonymous
    September 20, 2011
    Helped me. Thanks :)

  • Anonymous
    November 20, 2011
    Thanks for your information. I wonder if there is anyway I can install xnags4 without installing VS 2010, because I want to test my networking game on the computer. And as in this post forums.create.msdn.com/.../9924.aspx, he suggested installing XNA 4 full instead of redist ver to use GamerServicesComponent/use live networking. Thank again

  • Anonymous
    November 20, 2011
    The comment has been removed

  • Anonymous
    November 22, 2011
    I'm stucked at this step, tks a lot !

  • Anonymous
    November 22, 2011
    Hi Hungson175 - Which exact step are you stuck on?  Can you describe your scenario and any error messages you are seeing in more detail?

  • Anonymous
    December 02, 2011
    I am fed up with issues like "cannot install in compatibility mode". It is really stupid.   Please, Microsoft, make things simple and easy for us developers! We hate setup and configuration issues. It is NOT smart to make things hard for others.

  • Anonymous
    February 21, 2012
    What would I do if the installation succeeds, but I don't have any of the project options for XNA, and when I try to create a reference to the rmaework, it says it dosen't exist. What do i do?

  • Anonymous
    February 22, 2012
    Hi The_Dragonn_29 - Are you sure that you're using the version of Visual Studio that is required by the version of XNA Game Studio that you're installing?  For example, XNA Game Studio 4.0 requires VS 2010, XNA Game Studio 3.1 requires VS 2008, etc? Can you post screenshots of what you see in the VS New Project dialog and what error you see when you try to add that type of reference so I can take a closer look?

  • Anonymous
    April 18, 2012
    This really helps me to install XNA Game studio to Win 8

  • Anonymous
    April 18, 2012
    Hi Andrei Danilchenko - I have another post that might help with issues specific to Windows 8.  I encourage you to check out the post at blogs.msdn.com/.../10274694.aspx too.

  • Anonymous
    August 30, 2012
    Most useful information, I'd gotten to the stage of having the extracted files, but wasn't sure where to go next. Thanks very much.

  • Anonymous
    January 05, 2013
    This really helps me to install XNA Game studio. Big thanks.

  • Anonymous
    May 12, 2013
    I can't install XNALiveRedistribute nor XNALiveProxy. Are those essential to our installment? I can use XNA fine, but I just can't install those two MSIs

  • Anonymous
    May 12, 2013
    The comment has been removed

  • Anonymous
    July 28, 2013
    I opened the redist.msi and i clicked run. but after that, it was getting info but then it disappears after its completed and nothing shows up.

  • Anonymous
    July 29, 2013
    Hi Jeffrey - The redist.msi does not show any UI when it is done installing.  You should be able to continue on with step 4 in the above instructions to complete the manual install of XNA Game Studio after the redist.msi setup UI disappears.

  • Anonymous
    September 28, 2013
    this work for me.

  • Anonymous
    October 18, 2013
    Work great. thanks!

  • Anonymous
    November 29, 2013
    This work for me. and now i can program c# xna. Thanks

  • Anonymous
    February 27, 2014
    This helped a lot thanks.

  • Anonymous
    August 02, 2014
    Can't run .msi files! help D:

  • Anonymous
    August 03, 2014
    Hi Me - What is the exact error message you see when you try to run the steps listed in this blog post?

  • Anonymous
    December 13, 2014
    The comment has been removed

  • Anonymous
    December 13, 2014
    Hi aaron i need your help - Can you please do the following so I can investigate further?

  1.  Use the steps listed at blogs.msdn.com/.../help-me-help-you-if-you-have-setup-bugs.aspx to enable verbose logging
  2.  Re-run the failing setup and let it fail one more time
  3.  Go and find the log file in your %temp% directory and zip it up
  4.  Upload the zip file to a file server (such as http://onedrive.live.com)
  5.  Post a new comment here and provide a link that I can use to download the zip file and take a closer look
  • Anonymous
    March 25, 2015
    Gracias!!! Funciona!! Thanks a lot!! Now it's working!

  • Anonymous
    September 08, 2015
    Awesome! 1000x Thanks

  • Anonymous
    October 12, 2015
    Works flawlessly! Thanks a lot! I had been searching for a workaround to install xna game studio without vs for days.

  • Anonymous
    February 07, 2016
    thank you very much , I followed this tutorial and it has worked !