Detect if Exchange MAPI is installed

Hannes de Jager picture Hannes de Jager · Aug 4, 2010 · Viewed 9.8k times · Source

Since Exchange 2007, MAPI is no longer installed when Exchange is installed. On these systems this install is needed in addition to Exchange if you want to use MAPI.

My software depends on Exchange MAPI, so I need to detect if its installed. How can I reliably test if MAPI is installed on the local machine? First prise will be if I can also know if its Exchange MAPI or outlook MAPI and if its 32 bit or the new 64 bit.

Answer

Dmitry Streblechenko picture Dmitry Streblechenko · Aug 4, 2010

Check if HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\ExchangeMAPI key exists and read the DllPathEx string value. Exchange (standalone) version fo MAPI is always 32 bit. 64 bit version of MAPI is only installed if Outlook 2010 64 bit is installed.