• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Easy question.

How can I check is Word and Excel installed on the machine?
I need some realy beautifull way to do it.

10x.
0
Maximka
Asked:
Maximka
  • 4
  • 2
  • 2
  • +1
1 Solution
 
Olli083097Commented:
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
 
caraf_gCommented:
HKEY_CLASSES_ROOT\Word.Application
and
HKEY_CLASSES_ROOT\Excel.Application

0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
caraf_gCommented:
Good idea!
0
 
MaximkaAuthor Commented:
angelIII,
yes ,but it will work slow.
Thanks.
0
 
caraf_gCommented:
"it will work slow"
Well, then use the registry information I mentioned in my post of 9.37AM gmt
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
MaximkaAuthor Commented:
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
 
caraf_gCommented:
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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now