使用安装项目部署使用Kinect的XNA应用程序(Deploying XNA application which uses Kinect, using Setup Project)

编程入门 行业动态 更新时间:2024-10-27 08:35:39
使用安装项目部署使用Kinect的XNA应用程序(Deploying XNA application which uses Kinect, using Setup Project)

我在XNA-4中使用Kinect使用Visual Studio 2010 C#创建了一个游戏。 我为此创建了一个安装项目。 设置和安装的游戏在我的系统中运行良好; 但是当我在我的朋友笔记本电脑中部署它(带有先决条件的设置)时,它没有用。 已安装的游戏会立即打开和关闭。

我有另一个XNA游戏,主要区别在于它不使用Kinect。 它的设置即使在他的笔记本电脑中也能完美运行。 我猜它是因为依赖Microsoft.Kinect.dll 。

我已经证明了这些差异。

安装项目中的依赖项

如果我选择包含先决条件设置,则创建的安装文件夹看起来像这样。

安装的应用程序文件夹如下所示。

它将Microsoft.Kinect.dll复制到应用程序文件夹中。 真的有关系吗? 即使他没有安装任何与Kinect相关的设置,它不应该在Windows文件夹中的某个地方吗?

我不认为它是必要的,但我甚至试图在他的笔记本电脑中安装我所拥有的(下面列出的)与Kinect相关的所有东西,但它也给出了同样的问题。

Setup_Windows_Kinect_1.1.exe KinectSDK-V1.8-的Setup.exe KinectDeveloperToolkit-v1.8.0-的Setup.exe

请帮我解决这个问题。

I've created a game using Visual Studio 2010 C# using Kinect in XNA-4. I created a Setup project for that. The setup and the installed game works fine in my system; but when I deployed it (with the setup of pre-requisites) in my friends laptop, it didn't work. The installed game opens and closes immediately.

I have another XNA game with the main difference that it does not use Kinect. And its setup works perfectly fine even in his laptop. I guess its because of the dependency Microsoft.Kinect.dll.

I have shown the differences.

The dependencies in the Setup Project

The setup folder created looks like this if I select to include the pre-requisites setups.

The installed application folder looks like this.

It copies the Microsoft.Kinect.dll in the application folder. Does it really matter? Shouldn't it be somewhere within Windows folder even if he doesn't have any setup related to Kinect installed?

I don't think its necessary but I even tried to install everything I had (listed below) related to Kinect in his laptop but it gives the same problem.

Setup_Windows_Kinect_1.1.exe KinectSDK-v1.8-Setup.exe KinectDeveloperToolkit-v1.8.0-Setup.exe

Please help me fix this.

最满意答案

对于您在程序中使用的任何库,用户必须具有运行时DLL,这一点非常重要。 由于您使用的是Kinect for Windows库,因此您应该包含该运行时可再发行的安装程序,这里有一个链接: http : //www.microsoft.com/en-us/download/details.aspx?id = 34811

It's important that users have the runtime DLLs for whatever libraries you use in your programs. Since you are using the Kinect for Windows library you should include that runtime redistributable installer, here is a link: http://www.microsoft.com/en-us/download/details.aspx?id=34811

更多推荐

本文发布于:2023-07-29 14:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1316724.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   项目   XNA   Kinect   Project

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!