Home » [SOLVED] Unable To Execute Files In The Temporary Directory

[SOLVED] Unable To Execute Files In The Temporary Directory

Users have reported experiencing this error when trying to run a setup file which means the main cause of this problem is the user’s permission. What I mean to say is that at some point your system might have got corrupted and because of which your user doesn’t get the permission to run the setup file.

Fix Unable To Execute Files In The Temporary Directory

 Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied

While the causes of this error are not limited to user’s permission as in some cases, the main problem was with the Temp folder of Windows, which was found corrupted. The Error “Unable To Execute Files In The Temporary Directory” won’t let you install the executable file even if you close the Pop-up box, which means a serious issue for a user. Now there are few solutions which help fix this error, so without wasting any more time let’s see them.

Note: Make sure to create a system restore point in case you accidentally mess up something in Windows.

[SOLVED] Unable To Execute Files In The Temporary Directory

Before trying the below-listed methods, make sure you first try to run the Program (Which you are trying to install) as Administrator and if you still see this error then continue. So without wasting any time let’s see How to Fix Unable To Execute Files In The Temporary Directory error with the help of the below-listed guide.

Method 1: Fix security permissions on your Temp folder

1. Press Windows Key + R then type %localappdata% and hit enter.

to open local app data type %localappdata%

2. If you can’t reach to an above folder, then navigate to the following folder:

C:\Users\[Username]\AppData\Local

3. Right-click on the Temp folder and select Properties.

4. Next, switch to Security tab and click advanced.

Switch to Security tab and click Advanced

5. On the permission window, you will see these three permission entries:

SYSTEM with Full control inherited from C:\Users\[Username]\ which applies to 'This folder, subfolders, and files.'
Administrators with Full control inherited from C:\Users\[Username]\ which applies to 'This folder, subfolders, and files.'
Your Username with Full control inherited from C:\Users\[Username]\ which applies to 'This folder, subfolders, and files.'

6. Next, make sure to tick mark the option Replace all child object permission entries with inheritable permission entries from this object and Inheritance is Enabled then click Apply followed by OK.

make sure inheritance is enabled

7. Now, you should have the permissions to write to the Temp directory, and the setup file will continue without any error.

This method is generally Fix Unable To Execute Files In The Temporary Directory error for most users, but if you’re still stuck, then continue.

Method 2: Change control over the Temp folder

1. Press the Windows Key + R then type %localappdata% and hit enter.

to open local app data type %localappdata%

2. If you can’t reach to an above folder, then navigate to the following folder:

C:\Users\[Username]\AppData\Local

3. Right-click on the Temp folder and select Properties.

4. Next, switch to Security tab and click Edit.

Go to the Security tab again and click on Edit.

5. Click Add and type Everyone then click on Check Names. Click Ok to close the window.

Type everyone then click Check Names and then OK

6. Make sure that the Full Control, Modify and Write box is checked then click OK to save the settings.

make sure to check box Full control for everyone username

7. Finally, you may Fix Unable To Execute Files In The Temporary Directory as the above method gives full control over the Temp folder to all the users of your system.

Method 3: Creating a New Temp Folder

1. Press Windows Key + R then type “C:” (without quotes) and hit enter to open C: drive.

Note: The Windows must be installed on C: Drive

2. If you have a problem with the above step, then simply navigate to C: drive your PC.

3. Next, right-click in an empty space in the C: folder and click New > Folder.

4. Name the new folder as Temp and close the window.

5. Right-click This PC or My Computer and select Properties.

6. From the left pane window, click on Advanced system settings.

In the following window, click on Advanced System Settings

7. Switch to the Advanced tab and then click Environment Variables.

Click on ‘Environmental Variables...’ at the bottom right of the advanced system properties dialog box

8. In the User variables for your Username, double-click the TMP variable.

 Note: Make sure it’s TMP, not the TEMP variable

double click on TMP to edit its path in environment variables

9. Replace the Variable value to C:\Temp and click OK to close the window.

change the value of TMP to new temp folder inside C directory

10. Again try to install the program, which would work this time without any problem.

Method 4: Miscellaneous Fixes

1. Try to Disable your Antivirus and Firewall to see if this work or not.

2. Disable HIPS (Host-based Intrusion Prevention System HIPS).

That’s it you have successfully Fix Unable To Execute Files In The Temporary Directory, but if you still have any queries regarding this guide, please feel free to ask them in the comment’s section.

nv-author-image

Aditya Farrad

Aditya is a self-motivated information technology professional and has been a technology writer for the last 7 years. He covers Internet services, mobile, Windows, software, and How-to guides.

2 thoughts on “[SOLVED] Unable To Execute Files In The Temporary Directory”

  1. Bro In your first method when I check “Replace all child object permission……from this object”
    It ask “do you wish to continue” I click yes

    Then that “replace all child permission…” box uncheck automatically ..

    I have also tried other methods but even they didn’t work..

    What should I do now?
    Please help

Leave a Reply

Your email address will not be published. Required fields are marked *