Dear sir,
i would like to compare 2 numbers which is in the format 100.2.1 and 89.1.0. The format is 3 . (dots) and three values can be any numbers. i am comparing these two versions by removing .(dot)s in vb6 using replace command which replaces dots with spaces. Is there any shortcut in NSIS to compare these numbers just like in vb6 or any other solution will be highly appreciated.
thanks in advance.
regards
Devdas M. Kamath
compare 2 versions
5 posts
don't forget to include the header FileFunc.nsh and insert the proper macro GetFileVersion for installer un.GetFileVersion for uninstaller.
dear sir,
i would like to compare 2 numbers rather getting version from a file. please advice.
thanks
i would like to compare 2 numbers rather getting version from a file. please advice.
thanks
Dear sir,
you may use VersionCompare for this purpose, which is also included in nsis documentation.
you may use VersionCompare for this purpose, which is also included in nsis documentation.
thank you very much. it worked perfectly.