开发者

How to find whether office is installed

开发者 https://www.devze.com 2022-12-20 20:43 出处:网络
How can I programatically find whether MS-office is installed on a machine, 开发者_如何学编程and if installed what components are installed,version and stuff like that.

How can I programatically find whether MS-office is installed on a machine, 开发者_如何学编程and if installed what components are installed,version and stuff like that.

How do I find whether it is office professional or office ultimate.


You can look in the Registry.

According to the help, it can be found in HKEY_LOCAL_MACHINE\Software\Microsoft\Office\VERSION\Common\InstallRoot.

The article also describes how to find specific product information, like components, type of release, etc.

This SO question explains how to read a key from the registry using C#, if you need help for this part.


In the Registry:

HKLM\Software\Microsoft\VERSION\Common\InstallRoot

Where VERSION is the version of Office you are looking for

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号