简体   繁体   English

创建带有XNA二进制文件和可再发行文件的安装exe文件-VS2012

[英]Create an install exe file with binaries and redistributables for XNA - VS2012

I'm actually working on a game during my internship. 我实际上是在实习期间从事游戏。 I made it with XNA game studio and used Visual studio 2012 (used a topic on this site to install it...). 我是使用XNA游戏工作室制作的,并使用了Visual Studio 2012(已在此站点上使用主题进行安装...)。 Now that i'm almost done with the code, I'm looking into make an exe file which will install the game. 现在我几乎已经完成了代码,我正在研究制作一个将安装游戏的exe文件。 As it may be installed on computers where XNA and .NET redistributables aren't installed, the package should install them with the game, or it'll not work. 由于它可能安装在未安装XNA和.NET可再发行组件的计算机上,因此该软件包应随游戏一起安装它们,否则它将无法正常工作。

So I'm looking for two things : 所以我在找两件事:

  • How to generate binary files for my XNA project, as I don't want all the users to read my work. 如何为我的XNA项目生成二进制文件,因为我不希望所有用户都阅读我的作品。 I know how to do it on VS2010, but on VS2012 I just can't find where's the option to generate them. 我知道如何在VS2010上执行此操作,但是在VS2012上,我只是找不到在哪里生成它们的选项。

  • Once I got the binaries, I want to know how to make an exe file which will install them and the redistributables. 获得二进制文件后,我想知道如何制作一个exe文件来安装它们和可再发行文件。 I know there's some tools to do it, but I don't know what to use. 我知道有一些工具可以做到这一点,但我不知道该用什么。

Thanks in advance for helping me ! 在此先感谢您对我的帮助!

They have removed the installer project type from VS2012, checkout WIX. 他们已从VS2012检出WIX中删除了安装程序项目类型。 Its a bit clumsy to get started, but once you get a hang of it, its much more powerfull than VS2010 installer project 开始时有点笨拙,但是一旦掌握了它,它就会比VS2010安装程序项目强大得多

http://wixtoolset.org/ http://wixtoolset.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM