On this page, you will find four fixes to fix unable to execute file in the temporary directory issue:
Workable Solutions | Step-by-step Troubleshooting |
---|---|
Fix 1. Run File as Administrator | Right-click on installer file > Select "Run as Administrator"...Full steps |
Fix 2. Check Security Right | Navigate to C:\Users\[Username]\AppData\Local > Right-click Temp folder and select "Properties"...Full steps |
Fix 3. Create New Temp Folder | Navigate to C: and create a new folder named Temp > Right-click PC and select "Properties"...Full steps |
Fix 4. Disable Firewall | Disable your anti-virus, anti-spyware, and firewall applications...Full steps |
You may receive the error message shown in the image above when you run a setup file to install a program. But don't get mad at the software or doubt its origin, the software is innocent. It is caused by system issues or software-protection utilities. The error "Unable to execute the file in the temporary directory. Setup aborted. Error 5: Access is denied" indicates that you are trying to make modifications to the folder which you don't have access to, as you can see in the notification - "Access is denied".
Generally, you can't continue the installation just by closing the Window. Instead, you need to resolve the issue first and then proceed with the software installation.
To fix the unable to execute file error, you have four tips to try. After you try any of the tips below, install the software again and see whether the error 5 still exists.
Like the error "You'll need to provide administrator permission to copy this file/folder" when you don't use the computer as the administrator, you may be limited while using it. Most of the people who have been struggling with the software installation due to this bug claim that they have managed to bypass it simply running the file as administrator.
Step 1. Right-click on the installer file.
Step 2. Choose "Run as Administrator". Then the software may be installed successfully.
The problem may be caused due to security right issues if the first solution fails. Try the following steps:
Step 1. Navigate to C:\Users\[Username]\AppData\Local.
Step 2. Right-click on the Temp folder and select "Properties".
Step 3. Select "Security" and click "Advanced".
Step 4. On the "Permissions", you should see three options:
All these permissions inherited from the C:\Users\[Username]\ folder. If you don't have the "Include inheritable permissions from this object's parent" option ticked, click on "Change Permissions".
Step 5. Mark "Include inheritable permissions from this object's parent" with a tick, click "Apply" and then "OK". Click "Continue" if there are any problems, then remove the permissions that aren't inherited.
After all the steps above, you can try to upgrade your software or reinstall your software again.
Step 1. Navigate to the C: drive and create a new folder named Temp.
Step 2. After that, right-click on This PC (or My Computer) and select "Properties".
Step 3. Find the "Advanced System Settings" link on the left pane and click on it.
Step 4. Click the "Advanced" tab and select "Environment Variables".
Step 5. Double click on the "TMP".
Step 6. Change the value %USERPROFILE%\AppData\Local\Temp to C:\Temp.
Step 7. Close the window and try to install the software that you've preferred.
It may be HIPS (Host-based Intrusion Prevention System HIPS) causing this false positive. Try fully disabling your anti-virus, anti-spyware and firewall applications.
As data loss occurs on a daily basis, it's always necessary to get a data recovery software tool to rescue your data in the first time. If you want to recover deleted, formatted, inaccessible files, free data recovery software - Deep Data Recovery can help! Qiling data recovery software can restore lost files with simple clicks.
Step 1. Select file types
Launch Deep Data Recovery. Select file types and click "Next" to start.
Step 2. Select a drive and start scanning
Hover over the partition where you lost data. This could be an internal hard disk, external disk, USB, or SD card. Then, click "Scan".
Step 3. Check and preview scanned files
Use the file format filter on the left or upper right corner to narrow the scan results until you find the files you need. Then, you can click the "Preview" button or double-click a file to preview its content, if you'd like.
Step 4. Recover lost data to a secure location
Click the checkbox next to the file and click "Recover" to restore the lost data to a secure place. We recommend that you do not store the recovered data on the disk where you lost it earlier.