Skip to content
⌘ NSIS Forum Archive

OS Detection

3 posts

Defcon0#

OS Detection

Hello,

I use the versions plugin

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