Solved

Trying to Understand REGSVR32

Posted on 2009-05-18
7
484 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a User Account in Win7 & Win8 11 140
Windows Vista Blue Screen of Death Minidump analysis request 4 133
XP machine unable to logon 13 58
Windows Mail question 15 64
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, …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…

803 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