Archive: Integrate VersionCheckNew with If..Else..Endif


Integrate VersionCheckNew with If..Else..Endif
  Is there a way that you can inteagrate VersionCheckNew into LogicLib for easier logic comparison... For Example:


${If} ${VersionCheckNew} "$detectedver" "9.3.0" == 2
//do stuff here
${ElseIf} ${VersionCheckNew} "$detectedver" "9.3.3" == 1
//do stuff here
${ElseIf} ${VersionCheckNew} "$detectedver" "9.3.1" == 0
//do stuff here
${ElseIf} ${VersionCheckNew} "$detectedver" "9.3.2" == 0
//do stuff here
${ElseIf} ${VersionCheckNew} "$detectedver" "9.3.3" == 0
//do stuff here
${EndIf}


I know there are many more ways to write this, I am just asking in general...

Thanks All.

Squirre1

You can extend LogicLib, yes, but not the way you're writing it right now, of course :)

Probably the best approach would be to add comparison logic operators, a la (I'm using ${VersionCompare} out of WordFunc.nsh):


macroend 

>
Usage example for experimenting:

SectionEnd 

>