How to determine if ACE or JET on windows machine using .net?

willem picture willem · Mar 16, 2011 · Viewed 9.8k times · Source

How to determine (for a machine running windows xp/vista/7) whether ACE or JET is installed, so I can use an appropiate connection string to connect to a access database.

Answer

There is a registry key you can check. It is at HKCR\Microsoft.ACE.OLEDB.12.0. You can read it using the RegistryKey class.