outlook question

ADO DOT NET

Well-known member
Joined
Dec 20, 2006
Messages
156
I want to use and include the Outlook 2007 COM Library Reference in my program.
I think my program wont run on systems that havent Outlook 2007 installed.
That wont make any problems for me.

1. My question is how can I detect that Outlook 2007 is installed on a system?
Somewhere in registry?

2. And also how should I show a proper error message box instead of crashing error when my form loads on a system without outlook?
thanks
 
Does it really need to be outlook2007?

1. You can search the machine for the outlook folder. It is usualy in "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
2. You can search the registry for an entry for outlook.

For your message;
"This application needs Microsoft outlook 2007 properly installed to run." <-- is this OK?

As to the HOW to show the message.. you can of course use the messagebox AFTER you detect if outlook is present or not.
 
Back
Top