radhikakh 0 Newbie Poster

For my project , I have to find which version of Microsoft Exchange server is installed on my machine using C# code.
One solution I know is to read Registry entry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall and get the subkey.
But this is a bit difficult as I have to store array of subkeys for every server version and then search which one out of it is in the registry entry.

Is there any other method to know server version using some C# function or something else.

Thank you in advance.