Determining if Outlook is installed?

  • Thread starter Tony Toews [MVP]
  • Start date
Status
Not open for further replies.
T

Tony Toews [MVP]

Folks

I'd like to determine if Outlook is installed. Is it sufficient to

check for the existence of the following registry key?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\InstallRoot

Value Path

Where the 12.0 can clearly change depending on the version of Outlook.

Now being a paranoid pessimist I'll also double check that the exe

mentioned in the path also exists.

What happens if the user has had an older version of Outlook installed

but now has a newer version? Does the older version registry key

still exist? Hmm, I'll start at 14.0 and go backwards to version

10.0 then.

Any other things to consider?

Tony

Tony Toews, Microsoft Access MVP

Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm

Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

For a convenient utility to keep your users FEs and other files

updated see http://www.autofeupdater.com/

Granite Fleet Manager http://www.granitefleet.com/
 
D

DL

> What happens if the user has had an older version of Outlook installed
> but now has a newer version? Does the older version registry key


Only a single instance of Outlook can be installed

"Tony Toews [MVP]" <ttoews@telusplanet.net> wrote in message

news:5s32k5p5vsu0lukv3rjt9kcm1ovg6gvovc@4ax.com...
> Folks

> I'd like to determine if Outlook is installed. Is it sufficient to
> check for the existence of the following registry key?

> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\InstallRoot
> Value Path

> Where the 12.0 can clearly change depending on the version of Outlook.

> Now being a paranoid pessimist I'll also double check that the exe
> mentioned in the path also exists.

> What happens if the user has had an older version of Outlook installed
> but now has a newer version? Does the older version registry key
> still exist? Hmm, I'll start at 14.0 and go backwards to version
> 10.0 then.

> Any other things to consider?

> Tony
> > Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
> For a convenient utility to keep your users FEs and other files
> updated see http://www.autofeupdater.com/
> Granite Fleet Manager http://www.granitefleet.com/
 
N

neo

Also keep in mind that your reg path will be different when it comes to x86

vs. x64 systems. If looking for a better reg key to check, might think to

check...

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE

"Tony Toews [MVP]" <ttoews@telusplanet.net> wrote in message

news:5s32k5p5vsu0lukv3rjt9kcm1ovg6gvovc@4ax.com...
> Folks

> I'd like to determine if Outlook is installed. Is it sufficient to
> check for the existence of the following registry key?

> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\InstallRoot
> Value Path

> Where the 12.0 can clearly change depending on the version of Outlook.

> Now being a paranoid pessimist I'll also double check that the exe
> mentioned in the path also exists.

> What happens if the user has had an older version of Outlook installed
> but now has a newer version? Does the older version registry key
> still exist? Hmm, I'll start at 14.0 and go backwards to version
> 10.0 then.

> Any other things to consider?

> Tony
> > Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
> For a convenient utility to keep your users FEs and other files
> updated see http://www.autofeupdater.com/
> Granite Fleet Manager http://www.granitefleet.com/
 
T

Tony Toews [MVP]

"neo" <neo> wrote:


> Also keep in mind that your reg path will be different when it comes to x86
> vs. x64 systems. If looking for a better reg key to check, might think to
> check...


Ah, I keep forgetting about that minor detail. Time to purchase a

64 bit laptop. <smile

> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE


Thanks, Tony

Tony Toews, Microsoft Access MVP

Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm

Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

For a convenient utility to keep your users FEs and other files

updated see http://www.autofeupdater.com/

Granite Fleet Manager http://www.granitefleet.com/
 
T

Tony Toews [MVP]

"DL" <notvalid@spoofaddress.co.uk> wrote:


> > What happens if the user has had an older version of Outlook installed
> > but now has a newer version? Does the older version registry key



> Only a single instance of Outlook can be installed


But does the old registry key get deleted?

What if they install an older version of Outlook on top of a newer

version? Oh well, not going to worry too much about that case.

Tony

Tony Toews, Microsoft Access MVP

Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm

Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

For a convenient utility to keep your users FEs and other files

updated see http://www.autofeupdater.com/

Granite Fleet Manager http://www.granitefleet.com/
 
J

JP

Try this function:

Function IsOutlookInstalled() As Boolean

On Error Resume Next

IsOutlookInstalled = (Not CreateObject("Outlook.Application") Is

Nothing)

End Function

--JP

On Jan 3, 4:47 pm, "Tony Toews [MVP]" <tto...@telusplanet.net> wrote:
> Folks

> I'd like to determine if Outlook is installed.  Is it sufficient to
> check for the existence of the following registry key?

> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\InstallRoot
> Value Path

> Where the 12.0 can clearly change depending on the version of Outlook.

> Now being a paranoid pessimist I'll also double check that the exe
> mentioned in the path also exists.  

> What happens if the user has had an older version of Outlook installed
> but now has a newer version?  Does the older version registry key
> still exist?    Hmm, I'll start at 14.0 and go backwards to version
> 10.0 then.

> Any other things to consider?

> Tony
> > Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages -http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/
> For a convenient utility to keep your users FEs and other files
>   updated seehttp://www.autofeupdater.com/
> Granite Fleet Managerhttp://www.granitefleet.com/
 
T

Tony Toews [MVP]

JP <jp2112@earthlink.net> wrote:


> Try this function:

> Function IsOutlookInstalled() As Boolean
> On Error Resume Next
> IsOutlookInstalled = (Not CreateObject("Outlook.Application") Is
> Nothing)
> End Function


Ah, now that's an interesting idea. I'll play around with that a bit.

My concern though is it might take several seconds to return a

response while waiting for Outlook to start up.

Tony

Tony Toews, Microsoft Access MVP

Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm

Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

For a convenient utility to keep your users FEs and other files

updated see http://www.autofeupdater.com/

Granite Fleet Manager http://www.granitefleet.com/
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Outlook 2016 Can't display some embedded HTML images in Outlook 2016 Using Outlook 2
J Outlook EAS protocol version Using Outlook 1
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
C Why does Outlook (desktop) 365 for Windows keep making me input my passwords? Using Outlook 8
P Comcast IMAP broken but their second level support said to call "the Outlook company" Using Outlook 4
bdsermons Outlook 365 command button in outlook form Outlook VBA and Custom Forms 4
B iCloud telling me my Outlook is not supported Using Outlook 2
cheapfaremart Which outlook version is best? Using Outlook 0
T Outlook 2021 Cannot open attachments Outlook DeskTop 2021 Using Outlook 0
M Outlook settings will not accept a password Using Outlook 9
C Outlook FROM ADDRESS -Outlook.com and Android Using Outlook 1
E Outlook 365 Outlook/VBA Outlook VBA and Custom Forms 11
O How to find and replace a word in Outlook-Agenda-Subject and Message? Using Outlook 0
gproston Why doesn't Outlook remember indexing? Using Outlook 1
X Open Hyperlinks in an Outlook Email Message (Help with Diane's solution) Outlook VBA and Custom Forms 3
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
R Outlook Logging Using Outlook 6
e_a_g_l_e_p_i Email notifications changed with Outlook 2021 Using Outlook 8
Y Disable Microsoft Outlook Test Message Using Outlook 5
J Outlook 365 Outlook 2016/365 Contacts Lose Info when Favorited to the To-Do Bar Using Outlook 2
Commodore Are newer versions of Outlook still "less secure" to Google? Using Outlook 22
Commodore Any way to create "from-only" account on Outlook 2021? Using Outlook 1
Z Outlook.com OST Stopped working without explanation Using Outlook.com accounts in Outlook 3
glnz How to retrieve or redo Verizon.net email password without affecting Outlook connection? Using Outlook 1
S New Outlook Appointment - Select All Body Text and Change Font and Size Outlook VBA and Custom Forms 1
V Outlook 2021 Outlook-2021 (64-bit) and iCloud-for-Windows v13.0 - It Works Good. Using Outlook 9
O Outlook 365 - Gmail and Outlook: how to force Outlook to start up in Gmail? Using Outlook 2
M Seeking PDF Recommendation for Outlook that retains links Using Outlook 7
J SCANPST errors Outlook PST repair? Using Outlook 1
L did MS ever add way to text via Outlook Using Outlook 5
M Outlook 365 refuses to send email Using Outlook 1
P How can I stop Outlook 365 duplicating the posts? Using Outlook 2
P How to add a column named categories when searching in Outlook Using Outlook 0
J VBA for outlook to compare and sync between calendar Outlook VBA and Custom Forms 1
D Outlook 2003 Mail Fails Using Outlook 1
K Closing external IMAP email... Outlook 2013 Using Outlook 0
A force outlook to default to MY calendar Using Outlook 3
E Outlook VBA change GetDefaultFolder dynamically Outlook VBA and Custom Forms 6
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 3
B Seeking help with Outlook rule Using Outlook 2
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
A Outlook Reminders not populating for certain events Using Outlook 2
O Moving "tasks" to inbox in Outlook 2016 Using Outlook 1
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
Z Remove GMAIL IMAP account from Outlook 2016 Using Outlook 2
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4

Similar threads

Top