3

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.

Vinay Pandey
  • 8,589
  • 9
  • 36
  • 54

2 Answers2

6

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.

Community
  • 1
  • 1
Wookai
  • 20,883
  • 16
  • 73
  • 86
  • @Wookai, thank you for your response I can find the version of the office that is installed but how do I find all the other details without using Windows Installer. – Vinay Pandey Feb 24 '10 at 08:03
3

In the Registry:

HKLM\Software\Microsoft\VERSION\Common\InstallRoot

Where VERSION is the version of Office you are looking for

Nick
  • 5,875
  • 1
  • 27
  • 38
  • @Nick, as of now I can only get the version of ms office installed how can I find what components are installed and all the other details – Vinay Pandey Feb 24 '10 at 08:00