Re: DLL Registration Issue
You do it by using a proper install program that will correctly register the DLLs.
When multiple apps try to register the same DLL, the registry is updated to reflect that the DLL is now "shared" ... so if one app then tries to uninstall, shared DLLs should get left alone until the "used by" count returns back to 0. Because of the method you are using, this "app count" isn't being updated.
-tg
Re: DLL Registration Issue
thanks for the advice. that's a good way to do it. the problem is that when i try to use the self registration feature of the windows installer setup projects in Visual Studio, VS2008 crashes every time when i try to build the solution.
i can't seem to figure out how to fix it so i had to come up with a workaround. but that was the first thing i had tried. i wrote some code last night and tested it today on 3 machines, and it appears to work.
when the program starts up, it checks to see if the needed COM dll's are registered with the system by reading the registry entries in classes root \ CLSID. if the entry is there and the file it references actually exists (i.e. not a leftover registry value that points to a missing file), then do nothing - otherwise, register my copies included with the installer.
tried it on one machine that had the brokerage software, and 2 that did not. all 3 seem to function fine.
from what i read elsewhere you apparently can do a "registration free COM" usage by using a manifests file. but i am not familiar with that and judging by the page i was reading, that technique is a little bit above my skill level at this time.
i also noticed that with the more recent versions of my brokerage software they are using the manifest method AND registering the COM DLL's for people like me who want to use the SDK package.
when i "broke" the software the other day it was using a slightly older version which did not use the manifest method. my father was using the latest version and he told me the program i sent him did not break his. i couldn't figure out why...but now i know.
thanks again,
-Ryan
Re: DLL Registration Issue
VS has a setup tool, that can deploy to x86 or x64 bit OS's
Once you get the basics down, with a simple project, and figure out HOW to do it, it will work in 99% of the cases.