Archive: Winver to detect Vista


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."

...


${EndIf} ?
and DetailPrint only works in sections


thanks, finally I found C.5 Get Windows version in the User Manual and that works fine.

bye


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