PDA

View Full Version : Help finding MDAC version and checking if a dll is shared


t-tex
6th July 2001, 14:36
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

t-tex
13th July 2001, 05:58
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

Koen van de Sande
13th July 2001, 20:46
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.

icebrrrg
14th November 2003, 16:45
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-

icebrrrg
14th November 2003, 18:47
and here it is:

http://nsis.sourceforge.net/archive/nsisweb.php?page=468&instances=0

Joost Verburg
14th November 2003, 19:05
You'd better parse that string and compare the version number, to make it support any future versions.

icebrrrg
14th November 2003, 21:14
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-