Home > Common Problem > Internal error: Unable to create temporary directory [Resolved]

Internal error: Unable to create temporary directory [Resolved]

PHPz
Release: 2023-04-17 15:04:06
forward
7567 people have browsed it

Windows system allows users to install various types of applications on your system using executable/setup files. Recently, many Windows users started complaining that they received an error named INTERNAL ERROR: cannot create temporary directory on their systems while trying to install any application using executable files. The issue does not stop there but also prevents users from launching any existing applications that are also installed on the Windows system.

Some possible reasons are listed below.

  • Do not grant administrator privileges when running the executable file for installation.
  • An invalid or different path was provided for the TMP variable.
  • Corrupted System Files
  • The control settings of Temp folder may have been changed

Now let us see how to fix it using the solutions given below in this article this error.

Workaround – Try a system restore on a Windows system to get back to the last saved point.

Solution 1 – Check the path for TMP and TEMP variables

Sometimes, if the path is invalid or refers to another directory instead of a temporary folder in the system to get the environment variables named TMP and TEMP , this error is expected to occur. Therefore, we recommend you to check the path for the given TMP and TEMP variables using the steps given below.

Step 1: Open the System Properties window on your system by pressing the Windows and R keys to open the Run command box.

Step 2: Then enter systempropertiesadvanced in the text box and press Enter key.

Internal error: Unable to create temporary directory [Resolved]

Step 3: This will open System Properties with Advanced tab.

Step 4: Click the Environment Variables option at the bottom of the window, as shown below.

Internal error: Unable to create temporary directory [Resolved]

Step 5: In the Environment Variables window that appears on the screen, double-click under the User variables section TEMP variable.

Internal error: Unable to create temporary directory [Resolved]

Step 6: Now type the following lines in the Variable Value text box and click OK.

%USERPROFILE%\AppData\Local\Temp
Copy after login

Internal error: Unable to create temporary directory [Resolved]

Step 7: Do the same for the TMP variable as well.

Step 8: Then click "OK" on the "Environment Variables" window to close it.

Internal error: Unable to create temporary directory [Resolved]

Step 9: Now close the system properties window and restart the system.

After the system starts, check whether the problem is solved. If not, try the following other solutions.

Solution 2 – Run the executable as administrator

When you use an administrator account while logged into the system, it does most of the work without causing any problems. But certain issues arise when you log in using a user account on the system. So, let’s see how you can run any executable file as administrator while you are still using your user account.

Step 1: Go to the folder or desktop where you got the executable file to install the application.

Step 2: Now right click on the executable file and select Run as administrator from the context menu, as shown below .

Internal error: Unable to create temporary directory [Resolved]

Step 3: Next follow the on-screen instructions to complete the installation process without any errors.

Solution 3 – Execute CHKDSK on your system

Step 1: Open a command prompt on your system. First, press the Windows and R keys at the same time to open the Run command box.

Step 2: Then type cmd in the Run box and press the CTRL SHIFT ENTER key simultaneously as Administrator Open a command prompt window.

Note: You should accept the UAC prompt by clicking Yes.

Internal error: Unable to create temporary directory [Resolved]

Step 3: Type the following line in the command prompt and press Enter key to execute it.

chkdsk /x /f /r
Copy after login

Step 4: Here it will throw a message in the command prompt window saying “ Chkdsk cannot be run because the volume is in use by another process. You want to schedule it for the next system restart Check this volume? (Y/N) ".

Step 5: Now type Y and press Enter key.

Internal error: Unable to create temporary directory [Resolved]

Step 6: You can close the command prompt window.

Step 7: Restart the system so Chkdsk can start checking for errors and fix them.

Step 8: Once the system is complete and booted, check to see if the problem has been resolved.

解决方案 4 – 为 TEMP 和 TMP 变量分配新创建的文件夹路径

第 1 步:打开计算机上的C:\驱动器。

第 2 步:单击“新建”下拉菜单并从菜单中选择“文件夹” ,在 C:\ 驱动器中创建一个新文件夹。

Internal error: Unable to create temporary directory [Resolved]

第 3 步:然后将其重命名为Temp。

第 4 步:现在您可以关闭 C:\ 驱动器文件夹。

第 5 步:在此之后,您应该通过同时按Windows + R键打开运行命令框。

第 6 步:出现“运行”框后,在其中键入systempropertiesadvanced,然后点击Enter键。

Internal error: Unable to create temporary directory [Resolved]

第 7 步:这将打开“系统属性”窗口。

第 8 步:现在通过单击窗口底部的环境变量打开“环境变量”窗口,如下所示

Internal error: Unable to create temporary directory [Resolved]

第 9 步:双击顶部 User variables 部分中的TEMP变量,如下所示。

Internal error: Unable to create temporary directory [Resolved]

第 10 步:然后,在变量值文本框中输入以下行,然后单击确定。

C:\温度
Copy after login

Internal error: Unable to create temporary directory [Resolved]

第 11 步:现在您应该对 User variables 部分下的TMP变量重复相同的操作。

第 12 步:然后,单击“确定”关闭所有打开的窗口。

Internal error: Unable to create temporary directory [Resolved]

解决方案 5 – 将临时文件夹的权限访问更改为完全控制

步骤 1:通过运行打开Windows文件夹。首先同时按下WindowsR键,打开运行框。

步骤 2:然后在 Run 的文本框中输入C:\Windows并按Enter键。

Internal error: Unable to create temporary directory [Resolved]

第 3 步:接下来,一旦打开 windows 文件夹,查找名为Temp的文件夹并右键单击它。

第 4 步:现在从上下文菜单中选择“属性”选项,如下所示。

Internal error: Unable to create temporary directory [Resolved]

第 5 步:在“属性”窗口中,您应该通过单击转到“安全”选项卡。

第 6 步:然后,要更改您需要的权限,请单击底部的“高级”按钮进入“高级设置”窗口,如下所示。

Internal error: Unable to create temporary directory [Resolved]

第 7 步:确保您位于“高级安全设置”窗口中的“权限”选项卡上。

第 8 步:从“权限”选项卡下给出的列表中双击用户 ”以打开其权限窗口。

Internal error: Unable to create temporary directory [Resolved]

第 9 步:现在通过单击一次检查完全控制复选框,然后自动其余的复选框,如修改、读取和执行等将被选中,如下图所示。

Internal error: Unable to create temporary directory [Resolved]

第 10 步:完成后单击“确定”。

Internal error: Unable to create temporary directory [Resolved]

第 11 步:然后单击“应用”和“确定”关闭“属性”窗口。

Internal error: Unable to create temporary directory [Resolved]

The above is the detailed content of Internal error: Unable to create temporary directory [Resolved]. For more information, please follow other related articles on the PHP Chinese website!

source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template