You are here

dose copy dlls in system32 directory in xp need administrator previliege?

5 posts / 0 new
Last post
fishingisfun
Offline
Last seen: 15 years 6 months ago
Joined: 2008-09-05 12:05
dose copy dlls in system32 directory in xp need administrator previliege?

also, in Windows Vista (home basic), do dlls in system32 directory have special attribute? Seems simply copying dlls to system32 (with admin previliege) won't work, got error loading dll message, but in fact the dll is in system32 directory.

Thanks in advance!

Tim Clark
Tim Clark's picture
Offline
Last seen: 12 years 11 months ago
Joined: 2006-06-18 13:55
I think the answers are:

Yes you need admin privileges to put a file in system32

Putting a file in system32 in not always enough, some files need to be "registered" with the OS.

Tim

Things have got to get better, they can't get worse, or can they?

fishingisfun
Offline
Last seen: 15 years 6 months ago
Joined: 2008-09-05 12:05
Tim, thanks for your answers

But same portable application can be run in xp (with admin right) without registering those dlls, and in Vista, I got the error loading dll message, and I checked those dlls were indeed in the system32 directory. it puzzles me....

m2
Offline
Last seen: 13 years 1 month ago
Joined: 2006-12-12 12:00
Is your Vista x64? On x64

Is your Vista x64? On x64 systems, you should use a 32 bit program to put 32bit dlls in what they think to be system32.
Windows x64 cheats 32bit programs to think that another directory is %windir%\system32. Therefore they don't find dlls that are placed in %windir%\system32 (which is meant to contain x64 dlls anyway).
Usually the other directory is %windir%\SysWow64, so you can just copy your files there, but MS docs says that exact path may change and IIRC should be looked up in the registry.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

fishingisfun
Offline
Last seen: 15 years 6 months ago
Joined: 2008-09-05 12:05
my vista is home basic version, 32bit

Thanks!

Log in or register to post comments