Archive: Checking to see if dll is already registered


Checking to see if dll is already registered
Is it possible to check to see if a dll or ocx is already registered? At the moment my program needs mscomctl.ocx and I don't want to go installing the ocx if it's already there (may cause problems when I'm overwriting a newer ocx?)

Thanks


hmm take a look on the upgradeDLL Macro in the archives:
http://nsis.sourceforge.net/...

:confused: If I understood it right it just upgrades if the version of your installer is newer

alternative you could try it with the GetDllVersion Command

http://nsis.sourceforge.net/....

so you would serach for the ocx, and check its version and if it's older than your file you overwrite it

hope this helps

greets dave