Unable To Execute File In The Temporary Directory Error

By Ammarrauf01

Unable To Execute File In The Temporary Directory Error. In this article, you will learn how to fix unable to execute file in the temporary directory error. Some users have experienced various errors in installing a new program. However, it is not difficult to install any program, but it can get difficult if you get such errors. One such error ‘Unable to execute file in the temporary directory. Setup aborted’ can be seen while running a setup file. It happens when the setup is unable to create the directory.

How To Fix Unable To Execute File In The Temporary Directory Error?

Method 1 – Run Setup File as Administrator:

Instead of running a file as a simple user, you can run a setup file as an Administrator to solve ‘Unable to execute file in the temporary directory. Setup aborted’ issue. To do so:

1.Right click on the setup file.
2.Select ‘Run as Administrator’.

Unable To Execute File In The Temporary Directory Error - pic1

3.Follow the installation steps after clicking on ‘Yes’.
4.The app will get installed successfully.
5.If not, then try the next method.

Method 2 – Check Security and Permissions:

This issue is related to the temporary directory with the message ‘Access is denied’. Here, you should check the security settings and its permissions. Follow the steps:

1.Locate ‘C:\Users[Username]\AppData\Local’ in your computer.
2.Right click on ‘Temp’ folder.
3.Choose ‘Properties’.

Unable To Execute File In The Temporary Directory Error - pic2

4.Go to ‘Security’ tab and choose ‘Advanced’.
5.The Advanced Security Settings for Temp will have ‘Permissions’ tab.
6.You have to verify three permissions with ‘Full control’ that are ‘System’, ‘Administrators’ and ‘Your Username’.
7.If it is not allowed then select it and choose ‘Change Permissions’ to ‘Full control’ followed by a check mark on ‘Include inheritable permissions for this object’s parent’.
8.‘Apply’ the changes and click on ‘OK’.
9.Reboot the PC and install the desktop app.

Method 3 – Create a New Temp Folder in the Directory:

It is a very simple process. Follow the steps below:

1.Go to your local drive, for example, C: drive.
2.Create ‘Temp’ as a New Folder.
3.Right click on ‘My Computer’ or ‘This PC’.
4.Select ‘Properties’.
5.Choose ‘Advanced System Settings’.
6.Go to ‘Advanced’ tab.
7.Choose ‘Environment Variables’/
8.Double click on ‘TMP’ to change its Value to C:\Temp.
9.Click ‘OK’ and close the window.
10.Try to install the preferred desktop app.

Method 4 – Do Full Antivirus Scan:

You can run an antivirus scan to remove such errors from your computer. It will also protect your computer from adware, malware and other threats. It will also delete any missing and corrupted files.