replacing dll file that is in use

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to add "System Restore" to my Windows 2000 Pro Pc
and I almost have it licked, except that I can't add the new
version of the "advapi32.dll" file in the System 32 path as no
matter what I do, a message comes up that the file is currently
being used by windows, so it can't be replaced.

This happens even in safe mode. Can you tell me how to get this
dll file replaced (do I have to do it via DOS, and if so, how is
this done?)

Please steer me in the right direction,
 
=?Utf-8?B?Qnls?= said:
I am trying to add "System Restore" to my Windows 2000 Pro Pc
and I almost have it licked, except that I can't add the new
version of the "advapi32.dll" file in the System 32 path as no
matter what I do, a message comes up that the file is currently
being used by windows, so it can't be replaced.

This happens even in safe mode. Can you tell me how to get this
dll file replaced (do I have to do it via DOS, and if so, how is
this done?)

Please steer me in the right direction,

There is a program "inuse.exe" that is part of the win2k resource
kit that will do just that.

http://www.microsoft.com/downloads/...b6-0b0a-4261-b29b-3e78aa7618ac&DisplayLang=en

HTH,
John
 
quoting:
I am trying to add "System Restore" to my Windows 2000 Pro Pc
and I almost have it licked, except that I can't add the new
version of the "advapi32.dll" file in the System 32 path as no
matter what I do, a message comes up that the file is currently
being used by windows, so it can't be replaced.

This happens even in safe mode. Can you tell me how to get this
dll file replaced (do I have to do it via DOS, and if so, how is
this done?)

Please steer me in the right direction,


A DOS boot disk, with NTFS drivers on it, if need.
 
Thanks, John! Your suggestion has been the most helpful by far...

I downloaded "inuse.exe" and installed it. I then ran it from a command
prompt and got to the point of replacing the dll file that is in use, but I
got an error saying:

"Extended Error32"

Here's exactly what I did:

1. I copied the new file advapi32.dll from my windows XP Pro PC to the c:
drive of my Win 2K Pro PC.
2. I installed "in use.exe" on the W2K PC and opened a command prompt.
3. I found the dll file in question in the c:\winnt\system32 path, so I
entered at the C:> prompt:

replace c:advapi32.dll c:winnt\system32 /s [ENTER]

The response was:
Replacing c:winnt\system32\advapi32.dll
Extended Error 32

C:\>

I checked, but the version of the advapi32.dll file is the same and has not
changed. What am I doing wrong?
 
A DOS boot disk, with NTFS drivers on it, if need.

Good idea!

Where do I get one?

Or how do I make one?

Byl
 
Thanks, John! Your suggestion has been the most helpful by far...

I downloaded "inuse.exe" and installed it. I then ran it from a
command prompt and got to the point of replacing the dll file that
is in use, but I got an error saying:

"Extended Error32"

Here's exactly what I did:
[snip]

This one may be my fault. The version I told you to download was
for WinNT. Try these links:

<http://support.microsoft.com/default.aspx?scid=kb;en-us;228930>
<http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/inuse-o.asp>

This version covers Win2K.

HTH,
John
 
Good idea!

Where do I get one?

Or how do I make one?

For Free? The best solution I've found is BartPE found at:
<http://www.nu2.nu/pebuilder/>
but you have to build the disk yourself.
As I recall, you need a Windows XP install disk with SP1 (maybe SP2)
rolled-in. If you can obtain what is needed, this makes a good tool.

HTH,
John
 
but have you tried using tools from sysinternals?
You can close the handle to that file and replace it.
 
Back
Top