azzzrail
21st September 2007 09:28 UTC
GetVersion::WindowsType
Hi there!
I'm using the GetVersion Plugin made by Stu. It works fine except i can't get the WindowsType on a Windows Vista system. It just stays empty. I need the information because I need to prevent the script from installing on Home Editions. However it works fine on Windows XP.
Any Ideas?
Thx
azzz
Afrow UK
21st September 2007 11:11 UTC
The plugin may need some updates as most of it was last updated when Vista was still Longhorn.
I'll try and get to it soon but I am quite busy right now.
Stu
azzzrail
21st September 2007 11:20 UTC
Thx for the reply.
I just decompiled the dll and found the following passage in the WindowsType function
if(eax == 4) {
esi = "Workstation 4.0";
} else {
if(eax != 5) {
goto L1000139b;
}
this means you skip the type detection if it isn't WinXp.
The MSN says the the persoal suite flag is the same when using Vista. The section shouldn't be skipped if eax is either 6. Is there a way to change tis?
Afrow UK
21st September 2007 11:28 UTC
Yeh as I thought the plug-in just needs updating.
Stu
azzzrail
21st September 2007 11:40 UTC
that's the point :-)
is there any way i could do this, or could you give a hint how to create such a function on my own, cause i need to use this function in an installer which has to be working around the end of next week.
Afrow UK
21st September 2007 12:21 UTC
Please try this.
Stu
azzzrail
21st September 2007 14:09 UTC
*bows down to the almighty stu*
sorry if i caused you much trouble. it works perfectly now.
thx for the help.
Afrow UK
21st September 2007 17:35 UTC
Not at all just needed to add about 4 lines of code. I also added some more server types as well.
Will just need to update the main distribution and readme now.
Stu
azzzrail
21st September 2007 17:44 UTC
I saw what you did cause i decompiled the script before trying it out.
again, thx for the quick responses and the fixing.
you saved me from lots of sleeples nights :-)