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.
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.
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.
In the Registry:
HKLM\Software\Microsoft\VERSION\Common\InstallRoot
Where VERSION is the version of Office you are looking for