I want to write a program (in vb.net) that checks a customers configuration to make sure that they're ...
- Running XP service Pack 3
- Running .Net 3.0 or above.
- Give them a warning if they are not running .Net 3.5 or above.
or
- Running Vista Service Pack 1.
How would I do this? There is a stackoverflow question asking how to tell which version of .NET is installed, but how do I test which O/S & O/S service pack is installed?
How to detect what .NET Framework versions and service packs are installed?
I do not exactly know the version number of Windows XP SP 3 (but should be easy to lookup for you), but here is how you can get version string.
Determin if .NET Framework 3.5 is installed won't be easy because the 3.5 version is only a addon based on 2.0. But you can check if the folder "C:\WINDOWS\Microsoft.NET\Framework\v3.5" does exist.