myselfidem Posted September 13, 2012 Posted September 13, 2012 (edited) About IE version try to change inside wmi.js (line 320) :wmi.jsfunction getIEver(){ position="wmi.js"; whatfunc="getIEver()"; IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\svcVersion"); IEver=IEver.substr(0,3); return IEver;}Thanks to share your result! Edited September 13, 2012 by myselfidem
Dynaletik Posted September 13, 2012 Posted September 13, 2012 (edited) 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 triedfunction 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? Edited September 13, 2012 by Dynaletik
myselfidem Posted September 13, 2012 Posted September 13, 2012 Does this svcVersion exist on Win 7 PC e.g., too?Yes!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now