Skip to content
⌘ NSIS Forum Archive

More VB dist questions

3 posts

paul_snoop#

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;
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


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?
F. Heidenreich#
CompareDLLVersions is replaced by two methods GetDLLVersion and GetDLLVersionLocal. You can find a small example at the UpdateDLL macro in functions.htm.

~ Florian