Alex Barrett

I am trying to get a very simple 2D XNA game to run on other peoples machines; but when I send them the relevant files, they all complain of getting some form of error report.
They all claim to have the requirements (XNA Framework, latest DirectX and .NET Framework 2.0) installed, but it seems something, somewhere isn't doing its job.

One of the people in question only has a Radeon 7000, so it is understandable why it isn't working. But the other two have a GeForce 6800 and a 7300GS which should be more than enough!

I have tried both ClickOnce installers and binaries from both Debug and Release directories.
They all worked fine in folders on my machine, but on other computers the installers installed fine, but just throw up a windows error report when the application is run. And running the executable directly gives the following rather telling message (screenshot courtesy of my friend with the 7300GS): http://img115.imageshack.us/img115/1482/errorpi1.png

I'm not quite sure what to make of it. I'm hoping someone here can shed some light on the matter.


Re: XNA Framework Game Distribution

Rick Mogstad

Do you get the same results if you don't use an installer For example, if you just zipped up the relevant files and sent them

Also, what does it say if you press the "Details" button on your error message




Re: XNA Framework Game Distribution

Alex Barrett

 Rick Mogstad wrote:
Do you get the same results if you don't use an installer For example, if you just zipped up the relevant files and sent them

The posted screenshot is what happens when no installer is used.
 Rick Mogstad wrote:
Also, what does it say if you press the "Details" button on your error message

I asked him and he sent me this screenshot (although obviously the text file would have been better ): http://img170.imageshack.us/img170/1863/untitledrq7.jpg
There seems to be a problem with some kind of signature somewhere.




Re: XNA Framework Game Distribution

Jim Perry

Click on the Project | Properties menu - go to the Signing tab on the dialog and make sure none of the boxes are checked. If they are, uncheck them, rebuild and send him the new exe. If they're not checked, someone smarter than I will have to help.




Re: XNA Framework Game Distribution

PatrickB3

I have the same problem. Click once works on no machines. Copying the files to another machine and running them only works on machines with XNA Game Installed. Installing the XNA redist and the .NET 2.0. do not help. Apparent XNA Game Studio installs something that is needed that is missing from the XNA redist.



Re: XNA Framework Game Distribution

PatrickB3

I got clickonce to start to work. In Publish/Application File you need to change any that say Data Files(Auto) to Include. You want to go here anyways as it tends to include both the source art and the final art. However even fixing these the programs still only run on machines with XNA Game Studio installed.



Re: XNA Framework Game Distribution

PatrickB3

Got it to work on all PC's now. For clickonce I changed the XNA dlls to include instead of prerequisite. Also the machine in question needed DirectX updated. Would have been nice if the application let the user know instead of just bringing up the standard windows crash box.



Re: XNA Framework Game Distribution

XNA Rockstar

Yeah, I ran into the same issue on my sister's computer and eventually figured it out. To run a game, you need 3 things installed, .NET Framework 2.0, DirectX 9.0c, and XNA Framework 1.0. I totally agree that there should be some sort of message to tell you why it isn't working. What do you think, MS guys, could we get that added



Re: XNA Framework Game Distribution

waruwaru

Search/submit a bug, and maybe MS will take care of it:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682921&SiteID=1






Re: XNA Framework Game Distribution

XNA Rockstar

Just submitted under the (long) title of "Check to make sure proper versions of .NET, DirectX and XNA Framework are installed for redistributed XNA games" under the XNA GSE Suggestions category.

Here's a link if you guys want to go vote for it





Re: XNA Framework Game Distribution

Praxis

Just voted for this. It would make life a lot easier if XNA made sure it's system and software requirements where met before allowing the user to install it.



Re: XNA Framework Game Distribution

Scorchio

Thanks, Rockstar - just voted.

I've found it doesn't matter how clear or simple or detailed I make the instructions for downloading .NET/XNA/DirectX, many people just don't read them. Instead, I end up with a mailbox full of "Your program won't run, I get a microsoft.xna.gameworks or something not general assembly cache error". Players just want to click next->next->next->ok->play, not go off checking their add/remove programs list for installed components. I'll not go on, I'm preaching to the choir here!

It seems that the lack of a decent installer for games created with XNA GSE is a glaring omission from something that otherwise bends over backwards to make life easier for developers.




Re: XNA Framework Game Distribution

waruwaru

If you create your own installer, you can probably check for all the requirements.  So while you guys are at it, go vote for "Intergration for Visual Studio Users" in order to use the Deployment Project type:

https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=190037&SiteID=226






Re: XNA Framework Game Distribution

Mitch Walker - MSFT

Praxis wrote:
Just voted for this. It would make life a lot easier if XNA made sure it's system and software requirements where met before allowing the user to install it.

We do when you install the the XNA GSE product. We provide the XNA Framework and DirectX redist so that others can include them in their setup applications as a dependency. Making sure Click-Once is fully supported was not something we could do in time for v1.0 but is something we're looking at.