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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top