如何在应用程序启动时检测计算机上是否安装了 MS Runtime 或 Office?
我有一个使用 Visual Studio 2005 在 VB.Net 中开发的 WinForm 程序。该程序需要至少在计算机上安装 Microsoft Office Runtime,以允许应用程序运行而不会出现任何错误。
他们是否可以检查计算机以查看计算机上是否安装了最低版本的运行时或 Microsoft Office?如果不是,我想在应用程序启动时向用户显示一条消息,说明至少要转到 Microsot 的站点(我有运行时下载的完整链接)并免费下载运行时。
或者他们是一种将运行时作为组件包含在我的应用程序安装中的方法,这样如果它尚未安装在计算机上,它将在安装应用程序时安装?
谢谢
I have a WinForm program developed in VB.Net with Visual Studio 2005. The program needs Microsoft Office Runtime installed atleast on the computer to allow the application to run without any errors.
Is their a way to check the computer to see if the minimum of the Runtime or Microsoft Office is installed on the computer? If either isn't I would like to display a message to the user on the startup of the application that states to atleast go to Microsot's site (I have full link to Runtime Download) and download the runtime for free.
Or is their a way to include the runtime as a component with my install for the application so if it isn't installed on the computer already it will install when the application is installed?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要更具体的详细信息,请指定您感兴趣的确切运行时。Office 有很多这样的运行时。
对于启动条件,您可以尝试以下方法:
这如果搜索没有找到任何内容,安装将停止并显示您指定的消息。
另一种方法是将运行时作为先决条件包括在内:
如果您所需的先决条件不在该列表中,您必须手动配置。
If you more specific details please specify the exact runtime you are interested in. Office has lots of them.
For a launch condition you can try this approach:
This way the installation stops and shows the message you specify if the search doesn't find anything.
Another approach is to include the runtime as a prerequisite:
If the prerequisite you want is not in this list, you will have to configure it manually.