Archive: how to register a shared DLL that's been downloaded?


how to register a shared DLL that's been downloaded?
Hi all,

I'm trying to download a self-registering DLL as part of my install (e.g. with inetc::get) and register it and make sure the shared DLL counter is incremented. Unfortunately it appears InstallLib actually stores the DLL with the setup.exe.

How do I get around this, besides creating my own custom code?

Thanks,
bobics


Suppose you have the dll downloaded/exctracted e.g. in $TEMP.
Rename '$TEMP\mydll.dll' '$SYSDIR\mydll.dll'
RegDll '$SYSDIR\mydll.dll'

*If already exists the dll on target and you want to update, then first UnregDll-Delete.
See NSIS documentation for details.