I wrote a VB.NET application that uses SQL CE 3.5. I am wondering if anyone has any best practice or code to check if A) SQL CE is installed, and B) If so, which version.
I was looking for msdn and google for anything, but I did not find anything useful. I tore through the registry and found this key: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SQL Server Compact Edition \ v3.5 with the string value "Version" and the data was 3.5.5692.0.
So with a bat, my guess is to check for the presence of this key, but it bothers me because the "3.5" key is sure it looks like it is bound to a 3.5 DLL. What I'm trying to say, I would not want to force someone to install SQL 3.5 if they have SQL CE (insert some future version of CE here).
Additional Information: Target Structure: .NET 2.0 Minimum Target OS: Windows XP SP2
source
share