Distributing Your Finished Game
Quick Information
| Platform | Source Code Visible | Format | Windows User Requirements |
|---|---|---|---|
| Windows | No | .zip or other compressed format |
|
If you would like to share your XNA Game Studio game with other Windows users, but do not want to share your source code and assets, you can create an installable package that contains your game binaries and the necessary redistributable files.
Sharing to Another Windows User
You may package XNA Game Studio game projects only for the Windows platform. Use this method for distributing your compiled game code and asset files.
To Compile Your Game Binaries for Distribution
- In XNA Game Studio, open the project you want to package.
-
From the Build menu, click Build Solution.
This creates the necessary files needed to run your game on other computers.
- Package all files located in the appropriate output directory of your project, using an installation package tool of your choice.
Notes for Independent Publishing
In addition to the requirements listed in the previous table, there are additional software prerequisites that must be installed on a player's machine if the computer does not have XNA Game Studio installed.
The following software packages must be installed on the player's computer in order for your game to run.
- The .NET Framework 2.0 Redistributable.
-
The XNA Framework Redistributable corresponding to the version your game was built against.
Tip You can find this version number by loading your project in XNA Game Studio and clicking the project node in Solution Explorer. The XNA Framework Version property is visible in the property pane. To determine whether the player already has the redistributable installed, use the Windows Installer function MsiQueryProductState with the product code for the version of the redistributable that you want to verify. The following table lists the product codes for the various versions of the redistributable.
Redistributable Version Product Code XNA Game Studio Express 1.0 E7A2604C-0131-4415-9D0A-717E1BB1EDD2 XNA Game Studio Express 1.0 Refresh 311F799A-FCE9-4D9E-B5D2-CBB8859B40BB XNA Game Studio 2.0 245F6C7A-0C22-4de0-8202-2AAA620A1D3A
Note The XNA Framework Redistributable does not support the Content Pipeline or networked games. -
The following files from the DirectX 9.0c Redistributable.
- OCT2006_d3dx9_31_x86.cab
- APR2007_d3dx9_33_x86.cab
- aug2007_xact_x86.cab
- APR2007_xinput_x86.cab
- DSETUP.dll
- dsetup32.dll
- DXSETUP.exe
- dxupdate.cab