Answered by:
Registered DLL's

Question
-
How can I determine if an app is currently registered with windows? I know there is a command to type in that can register them from the command prompt, but how do I check if theyre registered from my app?
Also, how do i register them without command prompt, by using my app? if they're not already, of course.Wednesday, November 12, 2008 9:31 PM
Answers
-
Making a basic check of the registry to see if a dll has been registered is not that hard - if there is a key under HKEY_CLASSES_ROOT with the name of any ProgID ("DLLName.ClassName") of the dll then the dll must have been registered (unless there happens to be another dll with the identical ProgID, which must be unlikely).
To register without command prompt you can either create a simple installer for your app which will register all required dlls on the target system.
MSCD | .NET Architect | EAI Consultant- Proposed as answer by Manuj Aggarwal Thursday, November 13, 2008 5:28 AM
- Marked as answer by Martin Xie - MSFT Tuesday, November 18, 2008 8:53 AM
Thursday, November 13, 2008 5:28 AM -
by definition the process of registration is to add entries into the registry and let windows know where to find the dll when a program tries to create an object for this ProgID.
if you already know which dlls you are looking for then you can register it from your vb program by calling the registry APIs. More details here
MSCD | .NET Architect | EAI Consultant- Proposed as answer by Manuj Aggarwal Friday, November 14, 2008 12:37 AM
- Marked as answer by Martin Xie - MSFT Tuesday, November 18, 2008 8:54 AM
Friday, November 14, 2008 12:37 AM
All replies
-
Making a basic check of the registry to see if a dll has been registered is not that hard - if there is a key under HKEY_CLASSES_ROOT with the name of any ProgID ("DLLName.ClassName") of the dll then the dll must have been registered (unless there happens to be another dll with the identical ProgID, which must be unlikely).
To register without command prompt you can either create a simple installer for your app which will register all required dlls on the target system.
MSCD | .NET Architect | EAI Consultant- Proposed as answer by Manuj Aggarwal Thursday, November 13, 2008 5:28 AM
- Marked as answer by Martin Xie - MSFT Tuesday, November 18, 2008 8:53 AM
Thursday, November 13, 2008 5:28 AM -
Is it for sure registered if its in the registry? (Given no other has an identical ProgID?)
Also, this is once my application is running that I need to register dll's, the dll's have nothing to do with my program running or not. It is a program that trys to fix errors with your computer, and, for it to fix it, it will check if its already registered, if not it will fix it. The certain errors I am going to make it able to fix is the windows update dll's that need to be registered, since I have seen quite a few computers thta have this problem, and I want to fix this problem fast by just running a program, a VB program because I need to set policy settings as well, and this program is going to do that for me as well.Thursday, November 13, 2008 5:35 PM -
by definition the process of registration is to add entries into the registry and let windows know where to find the dll when a program tries to create an object for this ProgID.
if you already know which dlls you are looking for then you can register it from your vb program by calling the registry APIs. More details here
MSCD | .NET Architect | EAI Consultant- Proposed as answer by Manuj Aggarwal Friday, November 14, 2008 12:37 AM
- Marked as answer by Martin Xie - MSFT Tuesday, November 18, 2008 8:54 AM
Friday, November 14, 2008 12:37 AM -
where in the registry is the registered dll information?Friday, November 14, 2008 1:02 AM