Jump to content

Recommended Posts


Posted (edited)

Many thanks! :)

I've read the doc on the Main WPIW page, and I also made a new License.txt (French) inside French manual about this question:

And here is the new lang_fr.js for WPI_v8.6.2

Regards

Edited by myselfidem
Posted (edited)

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
Posted (edited)

Yes, it's better to use sku: "Pro" for Windows 8 Pro or sku: "Pro Edition".

Windows 8 editions

Windows 8 Pro succeeds Windows 7 Professional and Ultimate and is targeted towards enthusiasts and business users; it includes all the features of Windows 8.

Regards

Edited by myselfidem
Posted (edited)

On the WPIW Home page (Home tab) , thanks to remove also: sample config (word and link 404)

For any questions about configuration see [the sample config] and read the FAQ.

Thanks and regards.

Edited by myselfidem
Posted

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.

Posted

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 ^

Posted

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. ^^)

Posted (edited)

..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

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...