Solved

Easy question.

Posted on 2000-03-20
9
154 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 40 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
Industry Leaders: 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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