Archive: Help finding MDAC version and checking if a dll is shared


Hi,

I would like to find out first if MDAC is installed at all and then which version that is installed. Does anyone have any input on this?

Also, is there a way to find out if a dll is shared so that it can be removed?

Best regards,
Pontus


Hi again,

Since I got no replies I assume that no one has a solution for this problem. So I solved it by creating two small c++-programs that did the job for me.

/Pontus


The only thing I can think of is 'registry, registry', that there might be some key which is created by MDAC.

Also, a reference count of DLL's is kept somewhere, but I don't know where.

Not a very useful reply, because I don't really know. Sorry.


You can check for the MDAC version in the registry ... this article will help.

http://support.microsoft.com/default.aspx?kbid=301202#3

And I'm planning on writing a function for this and putting it in the archives, later today.

-m-


and here it is:

http://nsis.sourceforge.net/archive/...68&instances=0


You'd better parse that string and compare the version number, to make it support any future versions.


That's on the "to do" list. I just wanted to get an example up since I was looking early this AM for something similar, found nothing, and wanted to get something into my installer quickly. :)

Thanks!

-m-