Registering DLL on Windows


It is possible that your application requires this DLL to be on the search path. In this case you could move it to \Windows\System32
Or the application requires it to be in the application directory.

Now to register it, you need to move to the directory where the DLL is located and use the commandline tool RegSvr32. This tool should be on your search path (in \Windows\System32).

At the command prompt do the following:

// to register it:

regsvr32.exe MyLibrary.dll

 

 

// if you don’t like the dialog box popping up afterwards:

// option /s means ‘silent’

regsvr32.exe /s MyLibrary.dll

 

 

// if you want to unregister (uninstall) it later:

regsvr32.exe /u MyLibrary.dll

 

// silent version

regsvr32.exe /u /s MyLibrary.dll

 

A DLL file, also known as Dynamic Link Library, is a file containing different functions which are mostly used across multiple applications. In order to unregister a dll file to troubleshoot a problem in Windows XP or Vista, follow these instructions:

1. OPEN COMMAND PROMPT:

  • From START menu select RUN option.
  • Type “cmd” (without the quotation marks) . This calls up the Windows Command Prompt.


2. NAVIGATE TO THE EXACT LOCATION OF DLL:

  • Type “regsvr32 /u filename.dll” where “filename” is the name of the DLL that you are trying to unregister.


  • Press ENTER.
  • After you press ENTER,  the confirmation window stating “DllUnregisterServer in (file name) succeeded” will be displayed.


IMPORTANT INFORMATION:

Please keep in mind that this involves system modification and can be highly risky.

It’s always recommended to keep a system backup handy, in case things go wrong.

 

Source:
http://www.delphifaq.com/faq/windows_user/f668.shtml

http://www.xp-vista.com/other/how-to-unregister-dll-files

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s