How to determine if an office is installed

How can I programmatically determine if the MS office is installed on the machine, and if installed, which components are installed, version and the like.

How can I determine if an office is professional or office?

+3
source share
2 answers

You can look in the registry.

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

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

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

+6
source

In the registry:

HKLM\Software\Microsoft\\Common\InstallRoot

VERSION - Office,

+3

Source: https://habr.com/ru/post/1734089/


All Articles