Archive: GetVersion::WindowsType


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


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


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?


Yeh as I thought the plug-in just needs updating.

Stu


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.


Please try this.

Stu


*bows down to the almighty stu*
sorry if i caused you much trouble. it works perfectly now.
thx for the help.


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


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 :-)