如何确定是否已安装MS Office 2007 SP2? [英] How can I determine if MS Office 2007 SP2 is installed?

查看:173
本文介绍了如何确定是否已安装MS Office 2007 SP2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过OLE使用MS Word从我的应用程序中生成文档.我想为安装了MS Office 2007 SP2的用户提供将文档另存为PDF的功能.这仅在SP2中可用,并且如果未安装Service Pack(对于MS Office早期版本的用户也是如此),则应该隐藏该选项.

In am using MS Word via OLE to produce documents from my application. I want to give the users that have MS Office 2007 SP2 installed the ability to save the documents as PDF. This is only available in SP2, and the option should be hidden if the service pack is not installed (and of course also for users of previous versions of MS Office).

此信息是否可以在任何地方使用,例如在注册表或任何配置文件中?

Is this information available anywhere, like in the registry or any configuration file?

推荐答案

找不到对您有用的任何东西,但这可能对您有用.

Couldn't find anything helpful for you but here is something which you might find useful.

Office版本存储在注册表中

Office version is stored in registry

HKEY_LOCAL_MACHINE \Software\Microsoft\Office\12.0\Common\productVersion

对于Office 2003和2007,值12.0更改.此键有一个数字.我想检查一下此号码是否有其他版本(有/无SP1/SP2),看看是否有sia差异.

the value 12.0 changes for office 2003 and 2007. This key has a number. I think checking this number for different version (with/without SP1/SP2) and see if there sia difference.

这篇关于如何确定是否已安装MS Office 2007 SP2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆