Requiem87

List of Antivirus names for getAntiVirusProduct()

19 posts in this topic

About IE version try to change inside wmi.js (line 320) :

wmi.js


function 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 by myselfidem
0

Share this post


Link to post
Share on other sites

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?

Edited by Dynaletik
0

Share this post


Link to post
Share on other sites

Does this svcVersion exist on Win 7 PC e.g., too?

Yes!

0

Share this post


Link to post
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.