简体   繁体   English

使用安装程序部署使用Kinect的XNA应用程序

[英]Deploying XNA application which uses Kinect, using Setup Project

I've created a game using Visual Studio 2010 C# using Kinect in XNA-4. 我使用XNA-4中的Kinect使用Visual Studio 2010 C#创建了一个游戏。 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. 我还有另一个XNA游戏,主要区别是它不使用Kinect。 And its setup works perfectly fine even in his laptop. 即使在他的笔记本电脑中,它的设置也可以正常工作。 I guess its because of the dependency Microsoft.Kinect.dll . 我猜是因为有依赖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. 它将Microsoft.Kinect.dll复制到应用程序文件夹中。 Does it really matter? 真的有关系吗? Shouldn't it be somewhere within Windows folder even if he doesn't have any setup related to Kinect installed? 即使他没有安装任何与Kinect相关的设置,它也不应该在Windows文件夹中吗?

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. 我认为这不是必需的,但是我什至尝试在他的笔记本电脑中安装与Kinect相关的所有东西(在下面列出),但是它也有同样的问题。

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

Please help me fix this. 请帮我解决这个问题。

It's important that users have the runtime DLLs for whatever libraries you use in your programs. 对于您在程序中使用的任何库,用户都必须具有运行时DLL,这一点很重要。 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 由于您正在使用Kinect for Windows库,因此您应该包括该运行时可重新分发安装程序,这里是一个链接: http : //www.microsoft.com/en-us/download/details.aspx?id=34811

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

相关问题 使用具有ClickOnce更新功能的安装程序项目进行部署 - Deploying using Setup project with update functionality of ClickOnce 部署使用Entity Framework Core的WPF应用程序 - Deploying a WPF application that uses Entity Framework Core Web应用程序的安装项目 - Setup Project for a Web Application 为应用程序部署SQLite的设置步骤是什么? - What are the setup steps in deploying SQLite for an application? 在Visual Studio安装项目中将DLL部署到GAC的问题 - Problem deploying DLLs to the GAC in a Visual Studio Setup Project 部署使用本机dll的Web应用程序 - Deploy web application which uses native dll .Net桌面应用程序和安装程序部署项目 - .Net Desktop Application with a setup deployment project VS安装程序应用程序文件夹的DefaultLocation - VS Setup Project DefaultLocation for Application Folder 如何通过ClickOnce应用程序或安装项目添加前提条件 - How to add prerequisites with a ClickOnce Application or Setup Project 在使用.NET的安装项目安装主应用程序之前,如何安装其他安装程序? - How to install other setups before installing the main application using .NET's Setup Project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM