Archive: CompareDLLVersions removed :(


CompareDLLVersions removed :(
Now that NSIS 1.62 has dropped supprt for 'CompareDLLVersions' keyword, anybody has an idea on how to upgrade this code?

-------------------------------------------------------
; msbind.dll
File "G:\My Installations\RemindIT\FileDB\OCX\msbind.dll"
IfFileExists $SYSDIR\msbind.dll CheckVer1 InstNewVer1
CheckVer1:
CompareDLLVersions $TEMP\msbind.dll $SYSDIR\msbind.dll InstNewVer1 SkipInst1
Goto SkipInst1
InstNewVer1:
Rename /REBOOTOK $TEMP\msbind.dll $SYSDIR\msbind.dll
RegDLL $SYSDIR\msbind.dll
Goto End1
SkipInst1:
Delete $TEMP\msbind.dll
End1:
-------------------------------------------------------

10x


check the upgradedll.nsl script that comes with the NSIS installation. I don't have a copy of it right now so i couldn't post it.