Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you replace a DLL file

Status
Not open for further replies.

Geronimo24

Programmer
Dec 10, 2003
8
US
Hello,

I am running an application that requires me to have a newer version of the riched32.dll than the one that is on my computer. The reason that I have to replace this dll manually is that my installer fails to replace this specific dll during the installation process.

So, I'm having trouble doing this. I can't delete or rename this older version that I need to get rid of. I've tried to unregister it by typing "regsvr32 /u <path to the dll>", but that won't work. All I get is this error message:

"C:\WINNT\system32\riched32.dll was loaded, but the DLLUnregisterServer entry point was not found. DLLUnregisterServer may not be exported, or a corrupt version of C:\WINNT\system32\riched32.dll may be in memory. Consider using PView to detect and remove it."

What is PView?

Anyone have any ideas.
Thanks for any help.
 
pview.exe is an NT Resource Kit tool that is also distributed with some of the MS Languages. While it would let you "kill" or stop a process, it would not help you replace the .dll.

To replace a .dll:

1. find a copy of the replacement .dll file, or expand one from the Win2k CD.
2. In Safe Mode, Start, Run, CMD
c:
cd \winnt\system32\dllcache
ren riched32.dll riched32.bak
cd \winnt\system32
ren riched32.dll riched32.bak

Now copy the replacement .dll to both folders above.
Reboot.
 
Hi, thanks for the advice bcastner and 1101001100110101. I followed the instructions. However, now that the files have been replaced, the computer complains about having an unrecognized version of the dll and warns that it could affect system stability. It then prompts me to insert the Windows 2000 Pro CD so that the system can recover the original version.

Is there another step that I should have taken?

Mike
 
Call the software company, as they may well be pushing a version of riched32.dll for a different version of Windows.

 
Hi, thanks,

My computer has been acting weird since I did this. If I want to just get the workstation back to the way it was, should I just pop in the Windows 2000 Pro CD when it asks me to, or is there a better way. I have a saved copy of the old DLL.

Thanks again,
Mike
 
Pop in the CD, it probably won't make the situation worse :)

CJ

Don't drink and post, save that for driving home!
 
Have the CD handy:

Start, Run, Sfc /Scannow

But you are back at Ground Zero. Call the Software Company. They should not ask in the installer for you to install a System .DLL from a previous OS version.
 
If you use regsvr32.exe on the DLL, it will register it. OS should recognize it then. You can also unregister a dll with the /u switch. Although have to agree a company should not be asking for manual registration of a DLL. Bizarre.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top