Skip to content
⌘ NSIS Forum Archive

Winver to detect Vista

4 posts

Lel#

Winver to detect Vista

Hello,
I'm using Winver.nsh to detect the version, I get
this error and I don't know why:

Error: could not resolve label "_LogicLib_Label_1" in function ".onInit"

What I'm doing wrong?

Thanks

my code

!include "LogicLib.nsh"
!include "WinVer.nsh"

...


Function .onInit

${If} ${IsNT}
DetailPrint "Running on NT family."

...
kichik#
WinVer works better and is forward compatible. As Anders said, the problem is a missing ${EndIf}.