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#.
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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.