Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect Outlook

Status
Not open for further replies.

cslawtom

MIS
Sep 3, 2001
161
0
0
HK
I would like to check whether the Outlook existed or not before doing this - oOutlook=CreateObject("outlook.application")
Is there any way to do so?

Many thanks in advance
 
I would search in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Outlook Express


Satyen
 
cslawtom

satyenshanker Just to correct one thing, the path for Outlook is more like:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook

cslawtom
You could look at the "solutions" a the registry access to check if outlook is in fact on the user's machine.

Or
You could trap the error if it's not there:
Code:
ONERROR do noOutlook
oOutLook =CREATEOBJECT("Outlook.application")

PROCEDURE noOutlook
 messagebox("Outlook is not installed on this computer")
ENPROC



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top