Skip to content
⌘ NSIS Forum Archive

GetVersion::WindowsType

9 posts

azzzrail#

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#
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#
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?
azzzrail#
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#
Please try this.

Stu
azzzrail#
*bows down to the almighty stu*
sorry if i caused you much trouble. it works perfectly now.
thx for the help.
Afrow UK#
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#
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 :-)