How to detect if Microsoft ActiveSync is installed on a PC

activesync, c#, windows-mobile

Solution

You can read the registry to detect if ActiveSync is installed

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services 

Problem

What is the best/most reliable way of detecting if a PC has Microsoft ActiveSync installed? My PC program uses RAPI to get files off of the device and if it isn't installed there is an error that RAPI.dll cannot be found.

Original source