I would use "Pro" instead of "Professional Edition", as "Pro" is the original name by Microsoft.
For the IE thing I ran into a problem with shortening the result to 3 digits, as it then shows "10." instead of "10.0".
I now tried
function getIEver()
{
position="wmi.js";
whatfunc="getIEver()";
if (szOSVerCache == "Win8")
{
IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\svcVersion");
IEver=IEver.substr(0,4);
}
else
{
IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\Version");
IEver=IEver.substr(0,3);
}
return IEver;
}
But this only works to determine if it is IE10 which ships with Windows 8, so I guess this is perhaps better:
function getIEver()
{
position="wmi.js";
whatfunc="getIEver()";
IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\svcVersion");
if (IEver.substr(1,1) == ".")
{
IEver=IEver.substr(0,3);
}
else
{
IEver=IEver.substr(0,4);
}
return IEver;
}
It checks, if the second character of the svcVersion string is the "." and decides to cut the string down then. Shows "10.0" for me and if I change the reg value to 9.xxxx it Shows "9.0".
Does this svcVersion exist on Win 7 PC e.g., too?
This post has been edited by Dynaletik: 13 September 2012 - 06:23 AM