Replacing dlls with INUSE

  • Thread starter Thread starter Hubert Rétif
  • Start date Start date
H

Hubert Rétif

Hi,

I am using Windows2000 and need to replace a dll of system32 by an older
version (try to figure out why an application is working on some platform
and not on others). As this dll is locked by Windows, I must use the INUSE
utility (or is there something else?) to do it.

After rebooting, the original one is still there and was not replaced.

Here is how I have used it:
INUSE D:\vbg_bms\comctl32.dll C:\windows\system32\comctl32.dll

What is wrong there?

Hubert.
 
This is just a wild guess but perhaps you also need to replace the
copy that exists in c:\winnt\system32.dllcache.
 
Pegasus (MVP) said:
This is just a wild guess but perhaps you also need to replace the
copy that exists in c:\winnt\system32.dllcache.

Hi

A correct wild guess, the comctl32.dll file is also in the system32\dllcache
folder and needs to be replaced there as well.

But before you replace it in the dllcache, you will also need to replace it in
the %windir%\servicepackfiles\i386 folder first if it exists there.

(and before that, if it is available in a i386 folder from the OS "CD" available
from the harddisk/network, you need to replace it there as well)

This is the "correct" way to replace a file that is guarded by the Windows File
Protection System (1. and 2. does not always apply):

1. i386 folder from the OS "CD" available from the harddisk/network
2. %windir%\servicepackfiles\i386
3. %windir%\system32\dllcache
4. %windir%\system32 (with InUse.exe if necessary)
 
Back
Top