<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FAQs</title><link>http://forums.xna.com/forums/35.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>How can I make an installer to install my XNA Framework game?</title><link>http://forums.xna.com/forums/thread/9927.aspx</link><pubDate>Sat, 19 May 2007 21:59:46 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:9927</guid><dc:creator>The ZMan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/9927.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=35&amp;PostID=9927</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Prerequisites for XNA Framework games&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
To get started, refer to the MSDN documentation topic named &lt;a href="http://msdn.microsoft.com/library/bb417502.aspx"&gt;Sharing and Distributing Your Game&lt;/a&gt; - specifically:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156(XNAGameStudio.10).aspx"&gt;Dependencies for 1.0&lt;/a&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/bb464156(MSDN.9).aspx"&gt;&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156(XNAGameStudio.20).aspx"&gt;Dependencies for 2.0&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156(XNAGameStudio.30).aspx"&gt;Dependencies for 3.0&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://forums.xna.com/forums/p/12952/68298.aspx#68298"&gt;&lt;/a&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156.aspx"&gt;Dependencies for 3.1&lt;/a&gt;  &lt;/li&gt;
    &lt;li&gt;The &lt;a href="http://forums.xna.com/thread/9924.aspx"&gt;dependencies FAQ&lt;/a&gt; &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Creating an installer for games built with XNA Game Studio Express 1.0 and XNA Game Studio 2.0&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Deploying games created with XNA Game Studio Express 1.0 and XNA Game Studio 2.0 has the following limitations:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;ClickOnce (invoked by choosing the Publish command in Visual Studio) will not work. &lt;/li&gt;
    &lt;li&gt;Visual Studio setup projects will not work by default and require some additional steps.  Paul Stubbs &lt;a href="http://blogs.msdn.com/pstubbs/archive/2006/12/28/build-a-setup-project-for-your-xna-game.aspx"&gt;documented a way to do this&lt;/a&gt; for XNA Game Studio 2.0, but it relies on URLs which are &lt;a href="http://forums.xna.com/thread/13762.aspx"&gt;known to change&lt;/a&gt;.  MikeTrejo also documented a way in&lt;a href="http://forums.xna.com/thread/20772.aspx"&gt; a forum post&lt;/a&gt;. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both of the above options will try to determine the dependencies and will miss most of them. They will also try to include parts of the XNA Framework and DirectX which should not be distributed that way (see the XNA Framework and DirectX EULAs).&lt;/p&gt;
&lt;p&gt;The only way to deploy games created with XNA Game Studio Express 1.0 and XNA Game Studio 2.0 is to create your own installer package and add in the &lt;a href="http://forums.xna.com/thread/9924.aspx"&gt;dependencies&lt;/a&gt; and call their installers (see below for some tools that can help create this type of installer) &lt;strong&gt;- or - &lt;/strong&gt;ask your end users to manually install the dependencies and then provide them the contents of the \bin\release\ folder to run directly. &lt;/p&gt;
&lt;p&gt;Alternatively, if you know your end users will have XNA Game Studio installed, you can use &lt;a href="http://msdn2.microsoft.com/library/bb464158.aspx"&gt;XnaPack to create a .ccgame file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Creating an installer for games built with XNA Game Studio 3.0 or 3.1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
XNA Game Studio 3.0 and 3.1 support ClickOnce deployment, and they also include Visual Studio bootstrapper packages that can be used to install the XNA Framework Redistributable 3.0 and the XNA Framework Redistributable 3.1.  You can learn more about game deployment in XNA Game Studio 3.0 and 3.1 in the following links:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156(XNAGameStudio.30).aspx"&gt;XNA Game Studio 3.0 documentation&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/bb464156.aspx"&gt;XNA Game Studio 3.1 documentation&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/t71a733d.aspx"&gt;ClickOnce documentation&lt;/a&gt; &lt;a href="http://msdn.microsoft.com/library/t71a733d.aspx"&gt;
    &lt;li&gt;&lt;a href="http://blogs.msdn.com/astebner/archive/2008/10/31/9027445.aspx"&gt;Introductory blog post&lt;/a&gt; &lt;/li&gt;
    &lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Other tools for creating installers&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
There are several tools available that can be used to create installers.  Here are some options:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;WiX - &lt;a href="http://blogs.msdn.com/astebner/archive/2008/11/17/9115792.aspx"&gt;creating an MSI for an XNA Framework game&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;Inno Setup - &lt;a href="http://forums.xna.com/thread/2828.aspx"&gt;http://forums.xna.com/thread/2828.aspx&lt;/a&gt; or &lt;a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=498463"&gt;http://www.gamedev.net/community/forums/topic.asp?topic_id=498463&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;XNAInstaller - &lt;a href="http://www.codeplex.com/xnainstaller"&gt;http://www.codeplex.com/xnainstaller&lt;/a&gt; or &lt;a href="http://www.nuclex.org/installer"&gt;http://www.nuclex.org/installer&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;&lt;a href="http://blogs.msdn.com/astebner/archive/2008/11/21/9132456.aspx"&gt;Using the Visual Studio bootstrapper to install XNA Framework game dependencies&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="http://nsis.sourceforge.net/"&gt;NSIS (Nullsoft Scriptable Install System)&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have worked out steps to do it with other installer tools not listed above, please let us know and we will add a link here.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[ZMan&amp;#39;s soapbox]&lt;br /&gt;
&lt;/strong&gt;&lt;em&gt;The issue of having a web installer for DirectX has long been a thorn in the side of managed developers since our games have small EXEs and few assets so packaging the full redist with the setups makes the download huge. DirectX has a web installer available but Microsoft do not allow you to call it from your setup. The MVPs have raised this issue with Microsoft several times with no results. With the introduction of the XNA framework and the fact that it has an even bigger audience the problem is set to get worse since your installer will have to package both the DirectX runtime and the XNA Framework runtime. If this is of concern to you then feel free to add your scenario to &lt;/em&gt;&lt;a href="http://connect.microsoft.com/"&gt;&lt;em&gt;http://connect.microsoft.com&lt;/em&gt;&lt;/a&gt;&lt;em&gt; for the XNA framework.&lt;br /&gt;
&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>