How to check whether MS Office is installed on the machine.?

B

Basavaraj

Hi All,
I have an application when i program MS Word according to the requirements
of my project. I am using C++ for all the things that i do with Word. But, my
application crashes when there is no MS Office installed in the machine, its
because i assume the existance of MS Office. Can any one help me how to check
whether MS Office is installed on the machine before using any Word APIs.?

Thanks in advance.
 
A

Ahmad

hi!

You can check the Registry entries for MS Office using GetSetting(....)
function in VB6. If you want Complete code on how to get Installed
applications in VC++. I can send it to you.

Ahmad Jalil Qarshi
 
J

Jonathan West

Basavaraj said:
Hi All,
I have an application when i program MS Word according to the requirements
of my project. I am using C++ for all the things that i do with Word. But,
my
application crashes when there is no MS Office installed in the machine,
its
because i assume the existance of MS Office. Can any one help me how to
check
whether MS Office is installed on the machine before using any Word APIs.?

Thanks in advance.

take a look at this article

Determine If Word is Installed
http://vb.mvps.org/articles/qa200206.htm

You'll need to adapt the concepts to C++, but the principle should be easy
enough to follow


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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