Boyito
8th January 2009 17:19 UTC
Help with ${VersionCompare}
Hi, I try to use ${VersionCompare}
I put !include "FileFunc.nsh" in my code but when compile shows an error :
Call "GetDotNETVersion"
Pop: $R0
StrCpy $1 "$R0" () ()
Invalid command: ${VersionConvert}
Error in script "C:\Util\NSIS\Verify.nsi" on line 16 -- aborting creation process
Whats wrong
Thanks
Boyito
8th January 2009 17:21 UTC
Sorry the compile error message was :
Call "GetDotNETVersion"
Pop: $R0
StrCpy $1 "$R0" () ()
Invalid command: ${VersionCompare}
Error in script "C:\Util\NSIS\Verify.nsi" on line 16 -- aborting creation process
Animaether
8th January 2009 17:23 UTC
you need to !include "WordFunc.nsh" that's where VersionCompare and the like are defined.
I'm not too sure the rest of your code looks right either (e.g. "Pop: $R0" should be "Pop $R0", I think), but one thing at a time..
Ivan Andreevich
8th January 2009 18:05 UTC
3 lines of code you provided, and all are weird.
Call GetDotNETVersion
Pop $R0
StrCpy $1 $R0
Fixed for you, assuming that's what you want to do.
Boyito
8th January 2009 19:58 UTC
Thanks Animaether and Ivan
The lines are not from my code, there was from the compiled error window.
With !include "WordFunc.nsh" works fine
Bye