How to check a user's PC for version of Office App

S

Stretchcoder

I am writing a C++ app that is going to add a password to an Office file. I
am not sure that the user of my app will have Office installed (or what
version) on their PC. What is the best way to check before I get into my
automation code?

I assume I could look for a .olb file, but is this the best way to do it?

Thanks!
 
D

Dave Hart

Stretchcoder said:
I am writing a C++ app that is going to add a password to an Office file. I
am not sure that the user of my app will have Office installed (or what
version) on their PC. What is the best way to check before I get into my
automation code?

I assume I could look for a .olb file, but is this the best way to do it?
You could look for certain Registry values:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Application\CurVer]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Application\CurVer]

Dave Hart
 

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

Top