Solved

Trying to Understand REGSVR32

Posted on 2009-05-18
7
479 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now