Is开发者_C百科 there a way to find what service pack is installed from the browser? It doesn't look like it's in the System.Web.HttpBrowserCapabilities in asp.net. I need a way to warn users that they need to update to XP Service Pack 3 before proceeding and installing some software.
Not directly, no. Unless it's in the browser's UA, there's no way of detecting it without some kind of plugin.
If you can use VBSCRIPT you can get what you are looking for.
The WMI class Win32_OperatingSystem has the properties ServicePackMajorVersion, ServicePackMinorVersion, Name and Version.
Try samples here: WMI Tasks
Hope this can help
精彩评论