添加 Kinect SDK 作为我的应用程序的先决条件
我的应用程序需要在用户计算机上安装 Kinect SDK (http://www.microsoft.com/download/en/details.aspx?id=27876)。所以我需要验证机器上是否已安装 Kinect SDK。
如果没有,我希望安装程序向用户提供官方下载链接...
可能吗?如果是的话..我该怎么办?
提前致谢..
My application needs Kinect SDK (http://www.microsoft.com/download/en/details.aspx?id=27876) installed in the user machine. So I need to verify if Kinect SDK is already installed on the machine.
If not, I want that the installer to offers the official download link to the user...
Is it possible? If it is.. how can I do it?
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
到目前为止,官方的 Kinect SDK 是针对开发者的。
即使您可以检测到 SDK 不存在,用户也必须先安装 Visual C# 2010 Express 版本,然后再安装 Kinect SDK。这是安装 SDK 的要求之一。我个人认为这已经太复杂了。
正如 SDK 页面 (http://www.microsoft.com/en-us/kinectforwindows /),到了二月这一切都会改变。我的猜测是,微软正在发布 Kinect Runtime,以便用户可以安装它并运行 Kinect 应用程序(无需 Visual C#)。
So far the official Kinect SDK is targeted for developers.
Even though you could detect the absence of the SDK, the user must first install Visual C# 2010 Express edition before installing the Kinect SDK. This is one of the requirements to install the SDK. Personally I think it's too complicated already.
As mentioned on the SDK page (http://www.microsoft.com/en-us/kinectforwindows/), in February this will all change. My guess is that Microsoft is releasing a Kinect Runtime so that users can install it and run Kinect applications (without needing Visual C#).
这就是我在 App.xaml.cs 中检查 Kinect 运行时的方式:
灵感来自 这篇文章。
我使用的是 Kinect SDK 1.8 和 .NET 4.5。
据我所知,直到 1.8 版本,都没有注册表项可供检查。
还可以将 Kinect 运行时可再发行组件捆绑到您的安装程序中并在安装过程中执行它,例如通过自定义操作。我在依赖此方法时遇到两个问题:
This is how I check for the Kinect Runtime, in my App.xaml.cs:
Inspired by this post.
I'm using the Kinect SDK 1.8 and .NET 4.5.
As far as I know, up to version 1.8, there's no registry key to check.
It's also possible to bundle the Kinect Runtime Redistributable into your installer and execute it during install, e.g. via a Custom Action. I have two problems with relying on this method:
可以让 ClickOnce 安装程序检测目标计算机是否安装了 Kinect 运行时(请注意,通常只需要运行时,而不是完整的 SDK)。为此,您需要将 Kinect 运行时设置为应用程序的先决条件。
有关详细信息,请参阅 https://bitbucket.org/malingo/kinect-runtime-bootstrapper如何做到这一点。
It is possible to have a ClickOnce installer detect whether the target machine has the Kinect runtime installed (note that typically only the runtime is necessary, not the full SDK). To do this you need to set the Kinect runtime as a prerequisite for your application.
See https://bitbucket.org/malingo/kinect-runtime-bootstrapper for details on how to do this.