megawilly
15th April 2005 16:07 UTC
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.
Takhir
15th April 2005 18:27 UTC
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
megawilly
15th April 2005 18:51 UTC
Same result.
It's like if "GetSystemVersionValue" push the parameter in the stack and return.
Takhir
15th April 2005 18:54 UTC
Sorry, I edited my previous post. Forum search gives few related threads.
megawilly
18th April 2005 08:41 UTC
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.
Afrow UK
18th April 2005 13:32 UTC
Will you be submitting your plugin for others to use?
-Stu