Unable to execute file in the temporary directory. Error 5. Access is denied

I'm wanting to install softwares. I'm on Windows 7 Home Premium 64-bit. I have tried:

  • Turning off the User Access Control (UAC)
  • Right click and Run as Administrator
  • Run installer in compatibility mode (Windows XP SP3 and Windows Vista SP2)
  • Give permission to all temporary folders available (C:\Users\User\AppData\Local\Temp and C:\Windows\Temp)
  • Relocate the temporary folder to C:\temp and give it the permission
  • Take control of temporary folders
  • Creating a new administrator account and installing from that account
  • Checking the registry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\Windows\DisabledSession (there's nothing there though)
  • Also in HKEY_LOCAL_MACHINE\SYSTEM\CURRENT CONTROL SET\SERVICES\MSIserver\WOW64 (still nothing)
  • Running MalwareBytes and scan for suspicious files that may block the installing process.

But, still, it hasn't been successful. The Access is denied warning always appears and gives me a lot of headaches. I can't install anything. Any help? :/


Solution 1:

I'd tried everything. Nothing helped. But then I did close the Avast antivirus, the firewall and the spybut (malware) and that helped. Think I first tried to close antivirus and the firewall and that didn't help. So I believe it was the spybut or some combination.

Solution 2:

I had the exact same problem as you did and did all the same steps but nothing worked. Until I checked my antivirus and firewall settings. I already had my firewall shutdown, yet I noticed there was some parts still running in the background as prosesses. So I decided to open my firewall and check the settings (im using Comodo firewall), I forgot I had HIPS - setting as "Safe mode". I changed it to "Disabled" and now everything works like a charm again. Not sure if this helps anyone but it helped me in the end.

  • Smokereign