Test registered dll
-
Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC? If I don't know the classes, functions it's supposed to expose? I need a general solution for an automatic update feature. I'm thinking about something like getting the dll's classID(s) than search for it in the registry? Anybody ever done something like this?
-
Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC? If I don't know the classes, functions it's supposed to expose? I need a general solution for an automatic update feature. I'm thinking about something like getting the dll's classID(s) than search for it in the registry? Anybody ever done something like this?
tuxyboy wrote:
Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC?
One would like to think that the DLL's
DllRegisterServer()
function would return an error code if that happened.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
tuxyboy wrote:
Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC?
One would like to think that the DLL's
DllRegisterServer()
function would return an error code if that happened.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
The case is as follows. The dll's are installed and registered during the app's first install or when a new version is available. BUT when it's not I don't want to call registerserver. I don't know how but it happens sometimes that the already installed files (registered dll's) became unregistered somehow and stop working even if the updater app doesn't touch them, cause there is no new version available. The files are there but unregistered. So I want a method that every time the updatecheck runs it tests all the dll's needed to be registered even if it's not an updatable file, just to be on the safe side.
-
The case is as follows. The dll's are installed and registered during the app's first install or when a new version is available. BUT when it's not I don't want to call registerserver. I don't know how but it happens sometimes that the already installed files (registered dll's) became unregistered somehow and stop working even if the updater app doesn't touch them, cause there is no new version available. The files are there but unregistered. So I want a method that every time the updatecheck runs it tests all the dll's needed to be registered even if it's not an updatable file, just to be on the safe side.
there is no harm to register a dll multiple times, no reference count is kept, so this would simplify what you're trying to do with your installer. simply register the dll after it gets installed!:-D
Yours Truly, The One and Only!