PC Review


Reply
Thread Tools Rate Thread

Determining if Outlook is installed?

 
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      3rd Jan 2010
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/
 
Reply With Quote
 
 
 
 
DL
Guest
Posts: n/a
 
      3rd Jan 2010
> 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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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/



 
Reply With Quote
 
neo
Guest
Posts: n/a
 
      4th Jan 2010
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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/


 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      4th Jan 2010
"neo" <(E-Mail Removed)> 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/
 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      4th Jan 2010
"DL" <(E-Mail Removed)> 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/
 
Reply With Quote
 
JP
Guest
Posts: n/a
 
      4th Jan 2010
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/


 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      6th Jan 2010
JP <(E-Mail Removed)> 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining if Outlook is installed? Tony Toews [MVP] Microsoft Outlook VBA Programming 6 6th Jan 2010 09:36 PM
Determining if COM add-in is installed to create pdf files from Wo Doug Microsoft Word Document Management 1 28th Oct 2009 09:06 AM
determining whether VC8 C/C++ SxS assemblies are installed. RossettoeCioccolato Microsoft VC .NET 4 4th Dec 2006 09:38 AM
Determining whether sqlclient is installed, and installing it Rod Early Microsoft Dot NET Compact Framework 2 30th Apr 2004 01:52 AM
determining what kind of service pack is installed tribeoflife Microsoft Windows 2000 Upgrade 1 3rd Jul 2003 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.