top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What regsvr32 exe in .NET and what is the use of it?

+2 votes
385 views
What regsvr32 exe in .NET and what is the use of it?
posted Oct 3, 2013 by Atul Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+3 votes
 
Best answer

Regsvr32 is the command-line tool that registers .dll files as command components in the registry. You can use gacutil.exe also when you used a strong name key pair else use regsvr32. Both are used only to register dll files and not com components

answer Oct 3, 2013 by Sunil Maturi
+1 vote

regsvr32 is windows equivalent to ldconfig in Linux. It is a command-line utility in Microsoft Windows operating systems for registering and unregistering DLLs and ActiveX controls in the Windows Registry.

One important fact is to use regsvr32, a DLL must export the functions DllRegisterServer and DllUnregisterServer

Example
regsvr32 abc.dll for registering a file
regsvr32 /u abc.dll for unregistering a file

answer Oct 3, 2013 by anonymous
...