Skip to content
⌘ NSIS Forum Archive

Help with ${VersionCompare}

5 posts

Boyito#

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#
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#
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#
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#
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