Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check to see if Word is installed
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00445354
Message ID:
00445526
Views:
21
>>>>>>>>>>>>>>>>>
>Why not simply check the registry for the appropriate key?
>>>>>>>>>>>>>>>>>
>
>IMO, because some genius may have 'deleted' Word or somehow screwed it up w/o properly unistalling it, i.e. the existence of a registry key does not assure it will work.

Alex (and Larry too),

There's a number of ways to check to see if the user has blown away the application. For example, you could check the registry for the application, get the CLSID and then use that to find the LocalServer. Additionally, you could use FindExectutable() in Shell32 and then check for the presence of the file returned. This is just a personaly prefence. I hate having to rely on the error handler to check the validity of these things.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform