Solved

Trying to Understand REGSVR32

Posted on 2009-05-18
7
485 Views
Last Modified: 2012-05-07
I've used regsvr32 in the past, but I really haven't understood what it does.  As I understand them, DLLs (and OCXs) are customarily designed for specific applications, but when I run regsvr32, I'm not referencing a specific application.  When I run regsvr32, am I registering a DLL required by Windows?  iexplore.exe?  explorer.exe?  
0
Comment
Question by:jdana
7 Comments
 
LVL 4

Assisted Solution

by:TG_Tech
TG_Tech earned 42 total points
ID: 24412848
It reregister DLLs in the Windows Registry with Regsvr32.

I run the command with a switch and an argument ... Specifying a DLL

Regsvr32.exe usage

RegSvr32.exe has the following command-line options:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname

/u - Unregister server
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i
/s  Silent; display no message boxes (added with Windows XP and Windows Vista)


Source --> http://support.microsoft.com/kb/249873
0
 
LVL 11

Accepted Solution

by:
pcfreaker earned 43 total points
ID: 24412853
Hi,

Indeed you are right, it can be used for both purposes you mention, take a look a this article for you will get a better overview of its options:

http://support.microsoft.com/kb/249873/en-us

Any doubts let me know.

Rgds.
0
 
LVL 47

Assisted Solution

by:rpggamergirl
rpggamergirl earned 42 total points
ID: 24413262

You use regsvr32 to register and unregister DLLs and OCX.
Regsvr32 will load the specified object and then calls the function UnRegisterServer() in the dll file(if you are unregistering a dll)...or calls the function DllRegisterServer(if you're registering a dll file)
And you can use Regsvr32 not only for files use by Windows(iexplore.exe or explorer.exe) but it can also be called for normal programs.
http://support.microsoft.com/kb/249873
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 50

Assisted Solution

by:jcimarron
jcimarron earned 41 total points
ID: 24414075
jdana--When you register a .dll or .ocx file, you are loading it into memory so it can do its job.  That should happen automatically, but sometimes it does not.
0
 
LVL 17

Assisted Solution

by:Shanmuga Sundaram
Shanmuga Sundaram earned 82 total points
ID: 24414244
regsvr32.exe is a process belonging to the Windows OS and is used to register dynamic-link libraries and ActiveX controls in the registry. This program is important for the stable and secure running of your computer and should not be terminated. You can use the Regsvr32 tool (Regsvr32.exe) to register and unregister object linking and embedding (OLE) controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files that are self-registerable. This may be necessary to troubleshoot some issues with Windows, Microsoft Internet Explorer, or other programs. Additional information can be found in

http://www.uninet.net/~blaisdel/Regsvr32Info.htm
http://www.experts-exchange.com/Programming/Q_21020348.html
0
 
LVL 17

Assisted Solution

by:Shanmuga Sundaram
Shanmuga Sundaram earned 82 total points
ID: 24414270
0
 

Author Closing Comment

by:jdana
ID: 31582622
Thanks for some terrific responses.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
netsh interface ip show interface in Windows XP 4 134
My Documents Sync to shared location 4 86
Event ID 1054 Userenv 2 33
Where can I find a virus scanner for XP SP2? 22 56
There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question