Jump to content

Languages, Themes, Manuals & Mods


Recommended Posts


Here are the wmi.js changes for recognition of Windows 8 & Internet Explorer 10 that we discussed in the AntiVirus thread:

Line 53, Change

if (Caption.indexOf("Windows 8") != -1)

into

if (Caption.indexOf("8") != -1)

In the function getOSsku(sku), add the following case, we need some people with Enterprise or non-Pro version to get the other IDs:

		case 48:
OSSKU="Pro";
break;

Change getIEver() to the following:

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;
}

Cheers

Edited by Dynaletik
Link to comment
Share on other sites

After testing Windows 8 Enterprise (eval) on Oracle VM VirtualBox the sku is 72:

wmi.js

case 72:
OSSKU="Enterprise Edition";
break;

Regards

I think the "normal" Enterprise edition DOES NOT match this ID. The ID 72 is "Enterprise Evaluation", as this is what it says in my VMBox, too.

Link to comment
Share on other sites

Hey guys?

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;
}

This doesn't work... IE 8 (possibly 7 and lower do not have the "svcVersion" key.

function getIEver() 
{
position="wmi.js";
whatfunc="getIEver()";

IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\Version");

if (IEver.substr(1,1) == ".")
{
IEver=IEver.substr(0,3);
}
else
{
IEver=IEver.substr(0,4);
}

return IEver;
}

Try this ^

Link to comment
Share on other sites

Yes, like I said the problem is the following:

With IE 10 under Windows 8, the "Version" says "9.10", but "svcVersion" says "10.0". I do not know how this will be when installing IE 10 on Win7 or Vista.

Please test this:

function getIEver()
{
position="wmi.js";
whatfunc="getIEver()";

IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\Version");

if (IEver.substr(0,4) == "9.10")
{
IEver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Internet Explorer\\svcVersion").substr(0,4);
}
else
{
if (IEver.substr(1,1) == ".")
{
IEver=IEver.substr(0,3);
}
else
{
IEver=IEver.substr(0,4);
}
}

return IEver;
}

This should now check if IE version is 9.10, which it is on my Win8 system. If yes, it uses the svcVersion instead.

If not, it checks if the version is "x.x" or "xx.x" to cut it down properly. (If the version value is later on modified by MS, perhaps they just forgot it. ^^)

Link to comment
Share on other sites

..IE 8 (possibly 7 and lower do not have the "svcVersion" key.

Yes, you are right this key doens't exist for IE8 and lower Internet Explorer version.

However, testing the suggestion given by Dynaletik, works for me to detect IE8=8.0 or IE9=9.0

I can't test with IE10 now.

Thanks and regards

Edited by myselfidem
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...