how to check MS office version installed on the machines

試著忘記壹切 提交于 2019-12-05 00:53:21

问题


I am working on a console app which perform some operation on registry. I am not using any interop assembly for office but i need to to know office version. How to determine which version of MS office is installed on the machine using C#.


回答1:


Search in (using the Registry class)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths

or

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths

Version numbers are

  • 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




回答2:


I had the same requirement, but I also have to find out whether office installed is 32-bit or 64-bit. I have documented my solution here:

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



来源:https://stackoverflow.com/questions/896645/how-to-check-ms-office-version-installed-on-the-machines

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!