Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I copied a dll to the system32 directory. I want to register it, which requires me to be Administrator. If I right click on cmd.exe and run as Administrator and list the directory, the dll isn't shown. However, if I start cmd.exe normally, I can see the file, but can't register it.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can't write to system32 (or anything under %SystemRoot%) as a regular user. This means that you did not actually copy your library there.

I recall something about Windows 7 having some kind of a "filesystem virtualization" -- if you copy a file to a system directory but you don't have enough rights, it will appear to work, but the file will instead be copied to %UserProfile%\AppData\Local\VirtualStore\Windows\System32 (where %UserProfile% usually is C:\Users\<username>\). Check out that directory. If you find the DLL inside, delete it, then copy it as an Administrator.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.