Archive: More VB dist questions


More VB dist questions
Seems to be the repeating question, registering activex componants ;)

I'm looking at Koen van de Sande's script from this thread;
http://forums.winamp.com/showthread.php?threadid=44869

which goes something like this;
;OLEAUT32.DLL is always in use! Most of the time, a reboot is needed.
SetOverwrite on
SetOutPath $SYSDIR
CompareDLLVersions /STOREFROM OLEAUT32.NEW $SYSDIR\OLEAUT32.DLL oleaut32_1newer oleaut32_2newer
goto oleaut32_2newer
oleaut32_1newer:
File OLEAUT32.NEW
Rename OLEAUT32.NEW OLEAUT32.DLL
IfErrors 0 oleaut32_noreboot
Rename /REBOOTOK OLEAUT32.NEW OLEAUT32.DLL
MessageBox MB_OK "Reboot needed"
oleaut32_noreboot:
RegDLL "$SYSDIR\OLEAUT32.DLL"
oleaut32_2newer:

Code makes sense, looks good, but "CompareDLLVersions", I am missing something here, can't find any info on the command?


CompareDLLVersions is replaced by two methods GetDLLVersion and GetDLLVersionLocal. You can find a small example at the UpdateDLL macro in functions.htm.

~ Florian


Many thanks for the reply, I'll look into it....

ta, Paul.