Fatal error: Cannot create temporary directory on Windows PCs [FIX]

Madalina Dinita
by Madalina Dinita
Former Managing Editor
0 Comments
Download PDF
Affiliate Disclosure

Cannot create temporary directory

As usual, mostly for new users, there are a lot of errors messages and notifications encountered every day, especially on Windows 10. This particular fix has to do with helping you resolve the error encountered when trying to create a temporary directory on Windows 10.

Having an error when trying to create a temporary directory connotes that there is a challenge with the permissions of your user account. This error is usually displayed with a message – unable to execute files in the temporary directory.

This issue is usually encountered when a software solution is installed through an executable file. When the error message is displayed, you just have to close it, but this won’t permit you to proceed with the installation. This error can be encountered on Windows 7, 8, and 10.

This error message means that your system had been configured to block the setup. No need to panic, because this is only a configuration error and not a major error. Nevertheless, to enable you to continue with the installation process, there are a few things that you can do to fix this error. Below are few methods that can be utilized to clear off the error message.

What to do if you can’t create a temporary directory on PC

Solution 1: Select Run as administrator

This should be a very quick fix for you in case you are in a hurry to get your installation done and have no time for more extensive solutions. As said earlier, the error signal means there is a problem with the permissions.

This can be easily bypassed with these few steps:

  1. Look for the executable file that you want to install
  2. Right click on it and from the context menu, select Run as administrator.run as administrator adobe premier pro editing modes not found

This solution should be able to help you clear the error message and make you install your software without any issue.

— RELATED: How to open Temporary Internet Files in Windows 10

Solution 2: Create a new Temp folder and change the variables

Creating a new Temp folder and changing the variables is the best option if the error signal clearly says that there is a problem with the temporary directory. Follow these steps carefully and get the error out of your way:

  1. Enter the C: drive and create a new folder, rename it as Temp (switch C: with the drive your OS is installed)
  2. Right-click on This PC and select Properties from the menu context
  3. You’ll see an Advanced Settings link on the left side, click on itadvanced system settings widnows 10
  4. Click on the Advanced Tab in the window, and click on the Environment Variablessystem properties environment variables
  5. Double click TMP in the User variables
  6. The value you will see should be %USERPROFILE%AppDataLocalTemp. Change that to C:Temp. Then, close the window by pressing OK.

After all, try to install the program, it should be able to work perfectly without any issue.

Solution 3: Change the control over the TEMP folder

  1. In the drive where your OS is installed, enter your user’s folder and search for the AppData folder, in which you will find a local in the, if your OS is installed in the C: partition and your username will be User, also the address in the File Explorer should be “C:UsersUserAppDataLocal
  2. Search for the Temp folder inside, right-click and select properties from the menu
  3. In the properties window, click on Security
  4. In the security window, click on Everyone
  5. Click on Edit and ensure that all the Full Control box is selected, then click on OK to save.

This should give you full access to the Temp folder and resolve the error 5 permission problem.

— RELATED: How to delete temporary files using Disk Cleanup on Windows 10, 8, 7

Solution 4: Confirm the Include inheritable permissions in the Temp folder

Just like the previous solution, follow these steps:

  1. In the drive where your OS is installed, enter your user’s folder and search for the AppData folder, in which you will find a local in the, if your OS is installed in the C: partition and your username will be User, also the address in the File Explorer should be “C:UsersUserAppDataLocal”
  2. Search for the Temp folder inside, right-click and select properties from the menu
  3. In the properties window, click on Security
  4. Click on Advanced to view the permissions.appdata security advanced
  5. In the permissions, there should be SYSTEM, Administrator and User. All these must have full control and inherited from the C:UsersUser
  6. Look for the Include inheritable permissions from this object’s parent selection, click Continue, click on Apply and then press OK to save the setting.

By now, you should already have access to write to the directory which provides you an instant remedy this error.

Handling Windows’ permissions can be very complicated for an individual that doesn’t know much about it. Being able to set up permissions properly will help you not allow you against making serious damage to the OS.

Notwithstanding, these proffered solutions, when followed properly will enable you to fix the error of not being able to create temporary directory encountered on Windows 10.

RELATED GUIDES YOU NEED TO CHECK OUT:

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!