?
Solved

Easy question.

Posted on 2000-03-20
9
Medium Priority
?
156 Views
Last Modified: 2010-05-02
How can I check is Word and Excel installed on the machine?
I need some realy beautifull way to do it.

10x.
0
Comment
Question by:Maximka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:Olli083097
ID: 2635470
You can check the register for existence of the keys: HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word

(remeber the versions... you could try other keys to...)
0
 
LVL 10

Accepted Solution

by:
caraf_g earned 160 total points
ID: 2635484
HKEY_CLASSES_ROOT\Word.Application
and
HKEY_CLASSES_ROOT\Excel.Application

0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2635544
If you want to test inside your app, you can try to create the WORD.Application / EXCEL.Applicaiton Objects (using CreateObject). If this fails, word / excel are not installed.

This is basically the same than the above, except that you don't need to define all the Registry API functions
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:caraf_g
ID: 2635615
Good idea!
0
 
LVL 1

Author Comment

by:Maximka
ID: 2635650
angelIII,
yes ,but it will work slow.
Thanks.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2635721
"it will work slow"
Well, then use the registry information I mentioned in my post of 9.37AM gmt
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2635730
Just as a comment: if you want to know if Word/Excel are installed, then you will probably use them in your application, and with my proposal, you will have them (this will only be called once)
If Word/Excel are not installed, then the call will return quickly, and that's it.
0
 
LVL 1

Author Comment

by:Maximka
ID: 2635862
Cool!
Don't be so tender. ("this will work slow")
I just waited for something better , but I see that this is it.

Thanks.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2635889
love me tender, love me sweet, never let me go
you have made my life complete and i love you so
love me tender, love me true, all my dreams fulfilled
for my darlin' i love you and i always will
..
love me tender, love me long, take me to your heart
for it's there that i belong and we'll never part
love me tender, love me true, all my dreams fulfilled
for my darlin' i love you and i always will
..
love me tender, love me dear, tell me you are mine
i'll be yours through all the years till the end of time
love me tender, love me true, all my dreams fulfilled
for my darlin' i love you and i always will


The King's alive.... <sigh>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question