Archive: Issue with GetSystemVersionValue


Issue with GetSystemVersionValue
Hi,

I've an issue with sysinfo.dll under Windows 2000 (SP4).
When I try to get Major and Minor version of the OS, function GetSystemVersionValue return "MajorVersion" for the Major number and "MinorVersion" for the minor number.

My nsis source code :
sysinfo::GetSystemVersionValue 'MajorVersion'
sysinfo::GetSystemVersionValue 'MinorVersion'
Pop $1
Pop $0
MessageBox MB_OK 'Major: $0$\nMinor: $1$\n

The result in the Messagebox with Windows 2000:
Major: MajorVersion
Minor: MinorVersion

It work fine under Windows XP:
Major: 5
Minor: 1


Can someone help me ?
Thanks.


Few links to sysinfo problem threads
http://forums.winamp.com/showthread....hlight=sysinfo
http://forums.winamp.com/showthread....hlight=sysinfo
You can use forum search for sysinfo keyword


Same result.
It's like if "GetSystemVersionValue" push the parameter in the stack and return.


Sorry, I edited my previous post. Forum search gives few related threads.


Thanks takhir.

Finally I solved the problem by building a new plugin DLL which returns only what I need (Minor, Major and ServicePack version).
Now it works fine under all windows.


Will you be submitting your plugin for others to use?

-Stu