Monday 13 October 2014

Register a dll or all dll in a given folder into registry

Run cmd as adminstrator



Registering a file
To register (or re-register) a file, type:
regsvr32 <filename>.dll
or
regsvr32 <path>\<filename>.dll
where <path> is the path to the file, and <filename> is the name of the file.

Unregistering a file
To unregister a file, type:
regsvr32 -u <filename>.dll
or
regsvr32 -u <path>\<filename>.dll
where <path> is the path to the file, and <filename> is the name of the file.


How to register all DLL Files using CMD
This script turn out to be a extremely handy when all *.dll files in a folder need to be registered.
At the CMD prompt, type the following command and press [Enter]:

for %x in (c:\windows\system32\*.dll) do regsvr32 %x

This command will reregister every *.dll file under C:\windows\system32
 

Flashgot and Thunder (XunLei) error - Download Manager Not Properly Installed error

If you encountered error message - Download Manager Not Properly Installed Invalid Function, which I recently have when I used Flashgot to initiate Xunlei Download Manager. Then you may try the solution I have done to successfully call up the XunLei to download.

My solution is to register the corresponding dll into the registry:

In my case, it is the ThunderAgent.dll. For Thunder (XunLei), the dll (actually all dlls) are placed in the folder BHO under the Thunder folder.

First I open cmd (run it as administrator)
then go to the BHO folder
type regsvr32 thunderagent.dll


A message said ... successfully registered... will popup.

That's it. And you are done. XunLei back to normal.

Very simple

You may register all dll if you are not sure which dll work for you.
http://surfnetz.blogspot.com/2014/10/register-dll-or-all-dll-in-given-folder.html