Hi, I am using Windows 7 64bit home premium edition. I am unable to install any software in my system. Every time when i try to install any software an error message window appears with the following message.


C:\Program Files(x86)\.....

An error occurred while trying to rename a file in the destination directory: movefile failed; code 5

Access is denied.

Click Retry to try again, Ignore to skip this file (not recommended), or Abort to cancel installation.


Please give me some solution.....

Dani AI

Generated

Quick summary and likely cause: the installer error "movefile failed; code 5 — Access is denied" means the installer could not rename or overwrite a file under the C: destination. Because reports the same installer succeeds on another drive, the fault is almost certainly C:-specific (NTFS ACL/ownership corruption, a process holding the target file, or disk errors) rather than the installer itself. was correct to point at permissions/repair, but the following gives concrete, low-risk steps to pinpoint and fix the C: problem.

Recommended diagnostic and repair steps (ordered, low→higher impact):

  • Reboot to clear transient file locks, then retry the install.
  • Use Resource Monitor or Process Explorer to search for handles that mention the target path (Program Files or the exact file name). If a process has the file open, stop that process and retry.
  • From an elevated Command Prompt, take ownership and reset ACLs on the Program Files folder (run these as Administrator):
takeown /F "C:\Program Files (x86)" /R /D Y
icacls  "C:\Program Files (x86)" /reset /T
  • Run system checks from an elevated prompt:
sfc /scannow
chkdsk C: /f

(chkdsk will usually schedule on reboot.)

  • Perform a Clean Boot (disable non-Microsoft services) or test the install from a fresh local administrator account to rule out third-party software or profile corruption.
  • If the failure still appears, capture the install with Process Monitor (ProcMon) and filter for the C:\ path and "ACCESS DENIED" results to see which process/account is failing the rename — that shows the exact offender.

Cautions: these commands change ownership and ACLs; create a restore point or backup before making wide changes. If ProcMon shows a system process failing or SFC/chkdsk don’t help, a repair install (as suggested by ) or professional recovery may be needed.

Recommended Answers

All 7 Replies

Try right click on the setup file of the software you want to install and then click on Run as Admin in the context menu

I already try this but same error message

Is there any antivirus software enabled which could be blocking access to the file/folder?

No, I have not..

I try with different drive, it works.
But on C: drive it give me error message..

Just in case, see whether you do have write permissions to the folder

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.