If your are replacing or changing system files like (uxtheme.dll or imageres.dll) in Windows 7, Windows 8 and Vista then first you have to take ownership of the file and then grant your username full control of the file. Here's an easy way to do this:
Download "own.zip" from below, extract it and double click on "own.reg". It will add a new entry to your registry which will allow you to right click on any file you want to own and click on "Take Ownership".
To remove "Take Ownership" option from the right click menu, simply double click on "own_rem.reg".
If you don't like to use the registry files, then follow these steps for taking ownership of system files manually:
- Start button > All Programs > Accessories > Right-click on Command Prompt > Select Run as administrator > Click Continue.
- At the command prompt, input takeown /f filepath
- Now input icacls filepath /grant yourusername:f
Or you can use this tool: Take Control, if you are afraid to play with registry files. The tool has been made by WinMatrix members XPero to take ownership and get full control of any system file with ease.