Scorchio

So what's the best way to distribute the XNA framework with a game Just point people at the framework download on the Microsoft site Include the XNA framework installer with the game

I was clicking around and found in the project properties-> "Publish" -> "Application Files..." options, I can set the publish status of Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.Game.dll to "Include", which copies the dlls with the game. Is this enough to get the game running on another PC, assuming Framework 2.0 is present and DirectX is up to date

Thanks!


Re: XNA Game Studio Express Distributing games with XNA runtime

Jim Perry

Personally, I'd just point them to the downloads needed. Why include it if you don't have to




Re: XNA Game Studio Express Distributing games with XNA runtime

Scorchio

Jim Perry wrote:
Why include it if you don't have to


True, I don't have to, but it's one less step for the player, which is generally a Good Thing...




Re: XNA Game Studio Express Distributing games with XNA runtime

Bapa

Yeh. I tried sending a few of my games to a few friends, but they don't want to go over the hassle of downloading the runtime :(

Same with people that use .net. .net is evil! And I'll never use it as long as I live :]

But the point stands, how would you go about distributing it with the game





Re: XNA Game Studio Express Distributing games with XNA runtime

Jon Watte

No, you cannot actually include the framework DLLs directly, according to the license.

You can, however, download a copy of the XNA redistributable installer (which is only 2 MB), and include that installer in your installer. As a pre-action of your installer, you would then invoke this installer with the "/silent" switch to install the framework if it isn't already installed. This adds 2 MB to your download, which isn't too bad.

You may also want to do the same thing with the DirectX redistributable for the version of D3DX.DLL that the XNA framework depends on, if any -- else, users may have to go upgrade their DirectX install to run the game. I haven't verified whether they actually depend on D3DX, or just code straight to D3D9.DLL, but chances are, they use the well tested code of D3DX.







Re: XNA Game Studio Express Distributing games with XNA runtime

Scorchio

Yeah, it's a shame the install process doesn't automatically include checks for the components you need. As Bapa said, people aren't so keen to try your game when you start giving them a list of

a) install Framework 2.0,
b) install XNA redist,
c) update DirectX,
d) install the game.

This seems to be the only area of GSE that lets it down. It would have been cool if the install detected that lack of any of those prerequisite components and automatically downloaded/installed them from the relevant MS sites.

Or maybe it does somehow, and I've missed it! (fingers crossed)




Re: XNA Game Studio Express Distributing games with XNA runtime

cguardia

Hi,

Ií»ve found a post that proclams how to add XML framework as prerequisite: http://blogs.msdn.com/pstubbs/archive/2006/12/28/build-a-setup-project-for-your-xna-game.aspx#1396883

It didní»t work for me. I was able to add the prerequisite at the publish tab, but when I run the setup.exe it gives me an error.

EventType clr20r3, P1 darwinxna.exe, P2 1.0.0.0, P3 45afe9d6, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 32f8, P8 d8, P9 system.io.filenotfoundexception, P10 NIL.

By the way, wich are the exact steps to add the redistributable as part of my setup

Thanks in advance,

Christian.





Re: XNA Game Studio Express Distributing games with XNA runtime

XNA Rockstar

There's a similar thread going around on the XNA Framework side here.

I created a suggestion to add a check to verify that the computer installing the game has the correct versions of .NET, DirectX and XNAFramework before running. And would be even better if it would give links or auto-download them.

If you would also like this feature added to the next version of XNA, you can vote for it here.