473,467 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Check if Microsoft Outlook is installed as default mail cleint

Hi All

Is there a way that I could programatically check to see if Microsoft
Outlook is installed on the PC. Someone suggested this code, below, but
it is version specific.

Dim appOutlook as Outlook.Application
On Error Resume
Set appOutlook = CreateObject("Outlook.Application.8")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook 8 Installed"
Exit..
End if

Any suggestion most appreciated

Bob

Nov 13 '05 #1
3 7650
Remove the .8

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"bobdydd" <re**************@yahoo.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi All

Is there a way that I could programatically check to see if Microsoft
Outlook is installed on the PC. Someone suggested this code, below, but
it is version specific.

Dim appOutlook as Outlook.Application
On Error Resume
Set appOutlook = CreateObject("Outlook.Application.8")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook 8 Installed"
Exit..
End if

Any suggestion most appreciated

Bob

Nov 13 '05 #2
Br
bobdydd wrote:
Hi All

Is there a way that I could programatically check to see if Microsoft
Outlook is installed on the PC. Someone suggested this code, below,
but it is version specific.

Dim appOutlook as Outlook.Application
On Error Resume
Set appOutlook = CreateObject("Outlook.Application.8")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook 8 Installed"
Exit..
End if

Any suggestion most appreciated

Bob


I've used this function which checks the registry:

IsInstalled("Outlook.Application.8")

Function IsInstalled(ByVal pProgram As String) As Boolean
On Error GoTo IsInstalled_err
Dim c As String
c = fReturnRegKeyValue(HKEY_CLASSES_ROOT, pProgram, "")
If c = "ERROR" Then
IsInstalled = False
Else
IsInstalled = True
End If
IsInstalled_exit:
Exit Function
IsInstalled_err:
IsInstalled = False
Resume IsInstalled_exit
End Function
The other suggestion to attempt to create an Outlook object reference
may be better... haven't tried it.
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #3
That looks to see if Outlook is installed.

"Default mail client" means several things:
default from Access: default from IE: default
from MAPI etc etc.

Here are a couple of places to look:

HKEY_CLASSES_ROOT\MailTo

HKEY_LOCAL_MACINE\Software\Clients\Mail

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\ Common\Mapidll
(david)

"bobdydd" <re**************@yahoo.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi All

Is there a way that I could programatically check to see if Microsoft
Outlook is installed on the PC. Someone suggested this code, below, but
it is version specific.

Dim appOutlook as Outlook.Application
On Error Resume
Set appOutlook = CreateObject("Outlook.Application.8")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook 8 Installed"
Exit..
End if

Any suggestion most appreciated

Bob

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
2
by: Naresh | last post by:
I have been having a problem and I don't know where to go for help. The microsoft support is only for a fees. Can anyone at all please at least point to a site or some place where I can hope for some...
2
by: Stephen | last post by:
I am getting the following error when I am trying to send a report as an email attachment "Microsoft Access Can't Open the Mail Session" On the knowledge base on the MS site it says that this...
32
by: deko | last post by:
I'm trying to create an MSI in VS.NET that will check for installed Office System components - so my MDE will only install if requirements are met. I'm thinking about using VBScript to inspect...
5
by: zimmy | last post by:
Hi, Is it possible to check whether ASP.NET is installed on a machine, within a program that I'm writing in C#? And if it's installed, can I check if it is enabled? How? Thanks
1
by: Roger | last post by:
All, I have some code that is executed when a "New E-mail" arrives. When executing this code on several different machines I get either the New Message or the Last Message. All machines are...
5
by: Greg Robinson | last post by:
Not sure where to post this. At runtime, we need to be able to make sure a user is running Outlook (at least 98 or higher) in order to send an email. So, if a condition is met, we need to...
1
by: keri | last post by:
Hi, I use the below for the user to view their outlook calendar Sub DisplayInbox() Dim myolApp As Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myFolder As Outlook.MAPIFolder...
23
by: andyoye | last post by:
How can I launch Outlook on users machines when they click a button on a web form (InfoPath)? Thanks
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.