replacing dll file that is in use

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,
 
J

John Wunderlich

=?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
 
J

JM

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.
 
G

Guest

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?
 
G

Guest

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
 
J

John Wunderlich

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
 
J

John Wunderlich

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
 
A

Andrei Ungureanu

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top