Solved

Easy question.

Posted on 2000-03-20
9
152 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
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 142

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 142

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Put text in a picture ASP.NET C# 2 57
MS SQL store procedure to calculate and return result 6 57
clicking a shape in a frame array vb6 3 45
TT Auto Dashboard 13 92
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

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