Skip to content
⌘ NSIS Forum Archive

Issue with GetSystemVersionValue

6 posts

megawilly#

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#edited
Few links to sysinfo problem threads
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

You can use forum search for sysinfo keyword
megawilly#
Same result.
It's like if "GetSystemVersionValue" push the parameter in the stack and return.
megawilly#
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.