how to code a test to check if MS Office is already installed

  • Thread starter Thread starter Jak Sparrow
  • Start date Start date
J

Jak Sparrow

What code can I use to test if Microsoft Office is already installed on a
machine?

Jak S.
 
I found a solution:

Test for the existence of the registry path
SOFTWARE\Microsoft\Office\10.0\Common\InstallRoot

Try:
string OFFICE = @"SOFTWARE\Microsoft\Office\10.0\Common\InstallRoot";
Registry.LocalMachine.OpenSubKey(OFFICE);

You can change the 10.0 to 9.0 or 8.0.
 
Back
Top