Detect whether there is an account configured in Outlook

W

ward376

What is the test to see whether this line will open Outlook 2007 or
the Outlook 2007 Startup Wizard?

CreateObject("Outlook.Application")

Registry key 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT
\CurrentVersion\Windows\Messaging Subsystem\Profiles' has entries, but
the current user does not have an account configured in Outlook.

One thing that may help is that prior to this line, network
connectivity is confirmed - can I "ping" Exchange or something like
that?

Thanks!
Cliff Edwards
 
W

ward376

I want to test whether an account is configured for the current user
before instantiating Outlook to prevent the Startup Wizard from
opening.

Is this possible, and how can I do it?
 
C

Chip Pearson

You might try seeing what shell is associated with the "mailto"
protocol. Look in the default value of the key:

HKCR\mailto\shell\open\command

and see if the string "Outlook" is present. This isn't an iron clad
way of doing it, but it might be "good enough" for your purposes.

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]
 
W

ward376

Chip, if you don't have an iron-clad way, I know I can stop looking.

Thanks!
Cliff Edwards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top