I`m posting this cause I`m also a newbe in all of this, so I find that publishin my game was a problem so I spend hours trying to diluse what that the advanced programers try to say in their post and what I have to do, so here is the way that I found more easy for walk by.
Step One: Build your game in relase mode, find in your game forders the release folder( it is on; bin/x86/release), copy all the files into a new folder where ever you want but remember were it is, from those files delet the MANIFEST and the APLICATION MANIFEST ( you dont need It*)
Step Two: Open Visual Studio 2005 pro or over,(if you don`t have it try to look if some friend had it),folow this New Project>Other ProjectTypes>Setup and deployment>Setup project>[Name it**]>OK.
Step Three:In the left panel you will find tree folders, select "Aplication Folder", you will find that the right panel gets clean, in the right panel make an right click; Add>File>[Browse your folder*]>Add all the files.
Step Four:In the "User´s desktop" forlder you can add a short cut, right click; create New Short Cut> related it with the .exe file that is i tne "Aplication Folder".
Setp Five:In the "User´s Programs Menu" forlder you can add a short cut, right click; create New Short Cut> related it with the .exe file that is i tne "Aplication Folder".( here is good to add the read-me short cut but put the file in the aplication folder)
Step Six:Build your setup in relase mode in the Solution explores selcet the setup solution, go to the main menu; file>save setup, find the setup folders and go to the "release" folder, those are the ""complete Setup""!!! put the int were ever you want.
___________________
Optional Steps: This is optional but it make your solution much pulish, because you make a retriction to only instal it if they have the XNA frameworke redistributable.
( this goes before Step Two)
First make to XML(open eany notes block and save the file as .xml) files with this:
Call this One as: Product.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Specifies a unique ID for the package.-->
<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="Microsoft.XNARuntime.1.0">
<RelatedProducts>
<DependsOnProduct Code="Microsoft.Net.Framework.2.0" />
</RelatedProducts>
<!-- Provides a list of all the files in the redistributable.-->
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="xnafx_redist.msi" HomeSite="xnafx_redistmsi"
PublicKey="3082010a0282010100cd819638ae5ca2f2c1dfded0ab958dd63c9d1f8bc35d862e5df0b172f5abac886ab5dab1227b0bc8c8a54b915e2213e9f9f5239db5f46e76aeefeea43cc7c4c0595c3fabb3733326a662816179a162f46e8895d06eddc79fd2a451117661ba708a65a1961689a75d81d04466e5db569e40cafcdc76242e443000e5d67d7b9511d5581da3e84f0bc988dca2d653996cca63ca996a9a925e4c4d11e82fd35b5b5e5f52a3732da5bb84450d8c191576cb08da9aa67015e84dec69fd5db26b8fed295137388bc6464915945098b0f468a4d7de097167749e778c1d856b97eae75f45cce0e6710dd16300937b31988e0bb413bdb3d0eef1df21eea96061ee37433dc30203010001"
/>
</PackageFiles>
<!-- Contains all of the detection logic that the Bootstrapper
should run prior to downloading and installing the component.-->
<InstallChecks>
<MsiProductCheck Property="XNARuntimeInstalled"
Product="{E7A2604C-0131-4415-9D0A-717E1BB1EDD2}"/>
<MsiProductCheck Property="XNAGSEInstalled"
Product="{26DBF096-6283-43E2-B7A3-4C36785C635C}"/>
</InstallChecks>
<!-- Actions the Bootstrapper should perform while installing the component.-->
<Commands Reboot="Defer">
<!-- Specific action to take during the installation process.-->
<Command PackageFile="xnafx_redist.msi"
Arguments=""
EstimatedInstalledBytes="10000000"
EstimatedTempBytes="10000000"
EstimatedInstallSeconds="60">
<!-- Conditions under which the Bootstrapper should install, bypass, or fail the component installation.-->
<InstallConditions>
<BypassIf Property="XNARuntimeInstalled" Compare="ValueGreaterThanOrEqualTo" Value="3" />
<BypassIf Property="XNAGSEInstalled" Compare="ValueGreaterThanOrEqualTo" Value="3" />
</InstallConditions>
<!-- How to interpret the various codes that dotnetfx.exe might return after executing.-->
<ExitCodes>
<ExitCode Value="0" Result="Success" />
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>
</Commands>
</Product>
Call this One as: Package.xml
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
Name="DisplayName"
Culture="Culture">
<!-- Defines a localizable string table for error messages.-->
<Strings>
<String Name="DisplayName">Microsoft XNA Framework</String>
<String Name="Culture">en</String>
<!-- Exception messages.-->
<String Name="GeneralFailure">
A failure occurred attempting to install the XNA Framework Redist.
</String>
<String Name="xnafx_redistmsi">http://download.microsoft.com/download/e/9/e/e9ef6d37-ae65-48fd-aa0e-e9a8129c9868/xnafx_redist.msi</String>
</Strings>
</Package>
Go to C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages, Add a new folder call it "XNAframework", go inside it and paste the Product.xml , in the same forlder add a folde call "en" go inside of it and paste the Package.xml.
( this goes before Step Six)
On the solution Explorer rght click on the "setup solution" icon Select; Properties, in the window that pop up select restriction and you will find our new XNA rectriction select it and continue the steps.
___________________________________________________________________________________________________
I hope this would be helpfull for some one.
For those that are alitle bit clever find out that the DirectX 9.0 was not set but I don´t find the code and I don´t know how to make something like this or what it does I yous copy and paste it, but if you find them post them ;)