Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2005
    Posts
    13

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

    Hey guys, I have some questions I need to know about. I know how to register or un-register any specific DLL with the well-known RegSvr32 command. That’s fine. But I wanted to know how can I check after register or un-register if a certain DLL is already registered or not without any action? For example if I have two DLL file with the same name for example: D:\myproj\aaa.dll and D:\myproj\stable\aaa.dll. Here how can I come to know that how can I come to know if aaa.dll IS registered. Please help.

  2. #2
    Join Date
    Sep 2004
    Posts
    76

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

    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)

  3. #3
    Join Date
    Sep 2004
    Posts
    57

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

    Hellogajrap, you just have to search teh following keys for the DLL file's name:

    [HKEY_CLASSES_ROOT\CLSID]

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


    Hope it helps.

Similar Threads

  1. regsvr32/u lmpgspl.ax
    By Suu!Shant in forum Windows Vista Performance
    Replies: 2
    Last Post: 10-02-2010, 06:20 PM
  2. REGSVR32 0x80070005
    By rEDNESS in forum Windows Security
    Replies: 3
    Last Post: 16-08-2009, 11:08 AM
  3. regsvr32 shell32.dll
    By BoanHed in forum TroubleShoot 98
    Replies: 2
    Last Post: 22-11-2008, 12:46 PM
  4. regsvr32 error
    By Lulu in forum Vista Help
    Replies: 5
    Last Post: 17-06-2007, 07:41 AM
  5. register activeX Dll with regsvr32
    By Thanh-Nhan Le in forum Vista Help
    Replies: 4
    Last Post: 22-05-2007, 08:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,502,923.90662 seconds with 17 queries