how to check office version and install relative PIA?

T

Tanweer Ahmad

Hi Experts,
I am developing an outlook plugin for office 2000,2003,2007. i want to make
a setup file which can check the installed office version and install the
relative PIA, before installing the addin.. how can i do that?
Peace & Kind Regards,
Tanweer
 
K

Ken Slovak - [MVP - Outlook]

You can read the Path value from
HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE and see
where Outlook is installed if it is and then go to that folder and file and
read the version property. A clue usually is the 11.0 in the path for
Outlook 2003 or 12.0 for Outlook 2007, etc. but the user can install where
they want so that's not always accurate.
 
D

Dmitry Streblechenko

That key can be missing if Outlook is installed from a network drive.
A better approach might be to look at the Outlook.Application registry key
and see which executable it points to, then use the file version API to read
the version info.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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