How to check the version of MS Office installed on machines

I am working on a console application that performs some operation in the registry. I do not use any intermediate assembly for the office, but I need to know the office version. How to determine which version of MS Office is installed on a machine using C #.

+4
source share
2 answers

Search in (using the Registry class)

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Application Paths

or

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Application Paths

Version numbers

  • 7.0 -97
  • 8.0 - 98
  • 9.0 -2000
  • 10.0 -2002
  • 11.0-2003
  • 12.0 -2007
  • 14.0 -2010

Here is a C # implementation

+13
source

I had the same requirement, but I also need to find out if the office is set to 32-bit or 64-bit. I registered my solution here:

http://cyrilbeschi.blogspot.com/2014/03/how-to-find-microsoft-office-version.html

+1
source

All Articles