Solved

Easy question.

Posted on 2000-03-20
9
149 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
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:Olli083097
Comment Utility
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
Comment Utility
HKEY_CLASSES_ROOT\Word.Application
and
HKEY_CLASSES_ROOT\Excel.Application

0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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
 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
Good idea!
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Comment

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

Expert Comment

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

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now