PC Review


Reply
Thread Tools Rate Thread

How to check if a certain DLL is registered? Need RegSvr32 WITHOUT action

 
 
Timo Price
Guest
Posts: n/a
 
      23rd Feb 2009
Ok, I can register or un-register a certain DLL with the well known RegSvr32 command.

But how can I just check wether a certain DLL is already registered or not WITHOUT any action?

Furthermore assume that there are two DLLs with the same name:

D:\myproj\aaa.dll
and
D:\myproj\stable\aaa.dll

Say I find out that aaa.dll IS registered. How can I find out which of the two DLLs was previously registered
(the path of the DLL) ?

Timo

 
Reply With Quote
 
 
 
 
Riyazuddin Sk
Guest
Posts: n/a
 
      23rd Feb 2009
First you need to know the name of the object you are looking for (you might
have to search the registry for this). Using
"C:\WINDOWS\System32\wshom.ocx" as
an example (same thing for OCX/DLL) then you would search the registry under
HKEY_CLASSES_ROOT and find out that "WScript.Network" is the name to look for.

Your script would read the CLSID (a.k.a. GUID a.k.a globally unique
identifier)
from this key:
HKEY_CLASSES_ROOT\WScript.Network\CLSID

- Then use the CLSID to find the actual code here:
HKEY_CLASSES_ROOT\CLSID\{093FF999-1EA0-4079-9525-9614C3504B74}

- The file path is stored here:
HKEY_CLASSES_ROOT\CLSID\{093FF999-1EA0-4079-9525-9614C3504B74}\InProcServerÂ*32


Keep in mind there can be different versions referenced (ie:
WScript.Network.1,
WScript.Network.2), but the current version should be listed without a
number at
the end (WScript.Network)
 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      25th Feb 2009
Search these keys for the DLL file's name:

[HKEY_CLASSES_ROOT\CLSID]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs]


ju.c


"Timo Price" <(E-Mail Removed)> wrote in message news:49a26a0b$0$32667$(E-Mail Removed)...
> Ok, I can register or un-register a certain DLL with the well known RegSvr32 command.
>
> But how can I just check wether a certain DLL is already registered or not WITHOUT any action?
>
> Furthermore assume that there are two DLLs with the same name:
>
> D:\myproj\aaa.dll
> and
> D:\myproj\stable\aaa.dll
>
> Say I find out that aaa.dll IS registered. How can I find out which of the two DLLs was previously registered
> (the path of the DLL) ?
>
> Timo
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reboot necessary after "Regsvr32" command ? Asking from command line if DLL already registered? Kevin Yu Windows XP General 0 16th Nov 2007 09:36 AM
Reboot necessary after "Regsvr32" command ? Asking from command line if DLL already registered? Kevin Yu Windows XP Help 0 16th Nov 2007 09:36 AM
Loop through column(s) to check values, perform action based on check ward376 Microsoft Excel Programming 4 6th Nov 2007 03:21 PM
Registered Partner Action Pack Query =?Utf-8?B?TGFkeW11Y2s=?= Windows Vista General Discussion 0 11th Jun 2007 09:54 PM
regsvr32 regwizc.dll and regsvr32 licdll.dll isn't doing it =?Utf-8?B?TVdFMDU2?= Windows XP Help 1 10th Feb 2007 01:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 AM.