Archive: OS Detection


OS Detection
Hello,

I use the versions plugin
http://nsis.sourceforge.net/Version_plug-in
to detect whether the windows is NT or not:

Version::IsWindowsPlatformNT
pop $TempResult
StrCmp $TempResult "1" ItIsWindowsPlatformNT IsIsNotWindowsPlatformNT
ItIsWindowsPlatformNT:
MessageBox MB_OK "This OS is Windows NT"
ItIsNotWindowsPlatformNT:
MessageBox MB_OK "This OS is not Windows NT"

But it says I make the wrong usage with "pop".

Could you help me ?

Thanks.

BYe Defcon0


Use Pop $R0 and StrCmp $R0 ...

-Stu


Ah. I see :)