手动安装XNA的方法

在Win2008安装XNA的时候遇到错误,老是装不上,于是采用手动安装的办法

1、进入命令行,CD到下载的文件夹,输入xnags31_setup.exe /x,把安装包解压到一个文件夹

2、去到上面的文件夹,找到redists.msi安装

3、按照以下顺序找到对应的文件运行安装

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\XLiveRedist.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Redist\XNA FX Redist\xnafx30_redist.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Redist\XNA FX Redist\xnafx31_redist.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnaliveproxy.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnags_platform_tools.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnags_shared.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\platformer.msi

%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnags_documentation.msi

4、如果你安装有Visual C# 2008 Express,就安装%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnags_vcsexpress.msi

5、如果你安装有Visual Studio 2008,就安装%ProgramFiles%\Microsoft XNA\XNA Game Studio\v3.1\Setup\xnags_devenv.msi

6、去到第1步中的文件夹,安装arpentry.msi

这样XNA 3.1就手动安装完成了