ADO DOT NET Posted April 6, 2007 Posted April 6, 2007 I want to use and include the Outlook 2007 COM Library Reference in my program. I think my program won't run on systems that haven't Outlook 2007 installed. That won't 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 Quote
Eduardo Lorenzo Posted April 6, 2007 Posted April 6, 2007 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. Quote
Recommended Posts