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
Retired Geek Outlook for the MAC with Yahoo accounts now very broken Using Outlook 6
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
L How Stop Outlook Nag Messages Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
F Want to add second email to Outlook for business use Using Outlook 5
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i MY Outlook 2021 changed the format of the shortcuts for mail, calendar etc. Using Outlook 10
Z Outlook 2021 Outlook new emails notification not working Using Outlook 5
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
V How to use Comas in a picklist in Outlook forms Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about reinstalling Outlook 2021 Using Outlook 5
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
Jay Freedman Outlook forgets "not junk" marking Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
B Outlook config download Outlook VBA and Custom Forms 1
M Short term workaround for when Outlook searching stopped functioning Using Outlook 0
D Outlook 2016 Creating an outlook Macro to select and approve Outlook VBA and Custom Forms 0
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
L Synch Outlook 365 calendar with iPhone Using Outlook 0
W Can vba(for outlook) do these 2 things or not? Outlook VBA and Custom Forms 2
S Outlook 2016 and Acrobat PDFMaker Office COM Addin Using Outlook 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
M Outlook 365 Rename Outlook Priority Using Outlook 3
R Outlook 2019 accesses POP3 but says its offline (because of IMAP servers?) Using Outlook 0
R Outlook Working off line Using Outlook 0
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
W Outlook 2016 MSI - Possible to make work with O365 modern Auth & Win7? Using Outlook 4
T Outlook roaming signatures Using Outlook 4
S Adding a recipient's column to Sent folder in Outlook 2010 Outlook VBA and Custom Forms 1
J Outlook search bar in Office 2021 Professional Using Outlook 1
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
C How to fix outlook continuing to prompt fo an Exchange password Using Outlook 0
C Outlook doesn't feel reliable, anymore Using Outlook 5
J Outlook 2016 Trying to get Outlook 2016 to work with Office 365 Using Outlook 0
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
U Outlook not responding when trying to print Emails Using Outlook 6
O How to sync (one way) contacts between two Outlook (exchange) accounts? Using Outlook 0
S Sync Outlook (2021) tasks with Microsoft To Do Using Outlook 1
L Duplicate calendar entries in Outlook 365 Using Outlook 4
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
AlphonseG Outlook 365 Outlook Crashes on setting SaveSentMessageFolder Outlook VBA and Custom Forms 5

Similar threads

Top