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.
[SOLVED] Unable To Execute Files In The Temporary Directory Method 1: Fix security permissions on your Temp folder Method 2: Change control over the Temp folder Method 3: Creating a New Temp Folder Method 4: Miscellaneous Fixes
Method 1: Fix security permissions on your Temp folder
Press Windows Key + R then type %localappdata% and hit enter.
If you can’t reach to an above folder, then navigate to the following folder:
Right-click on the Temp folder and select Properties.
Next, switch to Security tab and click advanced.
On the permission window, you will see these three permission entries:
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.
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
Press the Windows Key + R then type %localappdata% and hit enter.
If you can’t reach to an above folder, then navigate to the following folder:
Right-click on the Temp folder and select Properties.
Next, switch to Security tab and click Edit.
Click Add and type Everyone then click on Check Names. Click Ok to close the window.
Make sure that the Full Control, Modify and Write box is checked then click OK to save the settings.
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
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
If you have a problem with the above step, then simply navigate to C: drive your PC.
Next, right-click in an empty space in the C: folder and click New > Folder.
Name the new folder as Temp and close the window.
Right-click This PC or My Computer and select Properties.
From the left pane window, click on Advanced system settings.
Switch to the Advanced tab and then click Environment Variables.
In the User variables for your Username, double-click the TMP variable. Note: Make sure it’s TMP, not the TEMP variable
Replace the Variable value to C:\Temp and click OK to close the window.
Again try to install the program, which would work this time without any problem.
Method 4: Miscellaneous Fixes
- Try to Disable your Antivirus and Firewall to see if this work or not.
- 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.