用户报告在尝试运行安装文件时遇到此错误,这意味着此问题的主要原因是用户的权限。我的意思是,在某些时候您的系统可能已经损坏,因此您的用户没有获得运行安装文件的权限。
Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied
虽然在某些情况下,此错误的原因不仅限于用户的权限,但主要问题在于Windows的(Windows)Temp文件夹,该文件夹被发现已损坏。即使关闭弹出(Pop-up)框, “无法在临时目录中执行(Temp)文件(Files)”错误也不会让您安装可执行文件,这对用户来说是一个严重的问题。现在很少有解决方案可以帮助解决这个错误,所以不要再浪费时间了,让我们看看它们。
注意:确保创建系统还原点,以防您不小心弄乱了Windows中的某些内容。
[已解决] 无法执行临时(Temporary)目录中的文件(Files)
在尝试下面列出的方法之前,请确保您首先尝试以管理员身份运行(Administrator)程序(Program)(您(Which)正在尝试安装的程序),如果您仍然看到此错误,请继续。因此,不要浪费任何时间,让我们在下面列出的指南的帮助下查看如何修复无法在临时目录中执行文件错误。(Fix Unable To Execute Files In The Temporary Directory error)
方法 1:修复(Fix)Temp文件夹的安全权限
1. 按 Windows 键 + R 然后输入%localappdata% 并回车。
2. 如果您无法访问上述文件夹,请导航至以下文件夹:
C:\Users\[Username]\AppData\Local
3. 右键单击 Temp 文件夹(Temp folder)并选择属性。(Properties.)
4.接下来,切换到安全选项卡(Security tab)并单击高级(advanced)。
5. 在权限窗口中,您将看到这三个权限条目:
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. 接下来,确保勾选选项“将所有子对象权限条目替换为此对象的可继承权限条目”(‘Replace all child object permission entries with inheritable permission entries from this object‘)并启用继承,(Inheritance is Enabled)然后单击应用,然后单击确定。
7. 现在,您应该有权写入Temp目录,安装文件将继续,不会出现任何错误。
对于大多数用户来说,这种方法通常是修复无法在临时目录中执行文件错误 (Fix Unable To Execute Files In The Temporary Directory error ),但如果你仍然卡住,那么继续。
方法 2:更改对Temp文件夹的控制
1. 按Windows Key + R然后键入%localappdata% 并按 Enter。
2. 如果您无法访问上述文件夹,请导航至以下文件夹:
C:\Users\[Username]\AppData\Local
3. 右键单击 Temp文件夹并选择属性。
4. 接下来,切换到安全选项卡(Security tab)并单击编辑。(Edit.)
5. 单击添加并键入所有人(Everyone ),然后单击检查名称(Check Names)。单击确定(Ok)关闭窗口。
6. 确保选中完全控制、修改和写入框,(Full Control, Modify and Write box is checked)然后单击确定(OK)保存设置。
7.最后,您可以修复无法执行临时目录中的(Temporary Directory)文件(Files),因为上述方法可以完全控制系统的所有用户的临时文件夹。(Temp)
方法 3:创建一个新的临时文件夹(New Temp Folder)
1. 按Windows Key + R然后键入“ C: ”(不带引号)并按 Enter 打开C: drive。
注意:(Note:) Windows必须(Windows)安装在 C: Drive
2. 如果您对上述步骤有疑问,则只需导航至 C:驱动您的 PC。
3. 接下来,右键单击 C: 文件夹中的空白区域,然后单击New > Folder.
4. 将新文件夹命名为Temp并关闭窗口。
5. 右键单击这台电脑或我的电脑(Computer),然后选择属性。( Properties.)
6. 在左窗格窗口中,单击高级系统设置。(Advanced system settings.)
7. 切换到高级选项卡(Advanced tab),然后单击环境变量。(Environment Variables.)
8. 在用户名的(User)用户(User)变量中,双击TMP变量。
注意:( Note:) 确保(Make)它是TMP,而不是TEMP变量
9. 将变量值替换为C:\Temp并单击确定关闭窗口。
10. 再次尝试安装程序,这次可以正常运行。
方法 4:杂项修复
1.尝试禁用您的防病毒(Antivirus)和防火墙(Firewall),看看这是否有效。
2. 禁用HIPS(基于主机的入侵防御系统 HIPS(Intrusion Prevention System HIPS))。
就是这样,您已成功修复无法在临时目录中执行文件,(Fix Unable To Execute Files In The Temporary Directory,)但如果您对本指南仍有任何疑问,请随时在评论部分询问。
[SOLVED] Unable To Execute Files In The Temporary Directory
Uѕers haνe 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 permiѕsion to run the setup file.
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.
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.
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.
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.
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.
5. Click Add and type Everyone then click on Check Names. Click Ok to close the window.
6. Make sure that the Full Control, Modify and Write box is checked then click OK to save the settings.
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.
7. Switch to the Advanced tab and then click Environment Variables.
8. In the User variables for your Username, double-click the TMP variable.
Note: Make sure it’s TMP, not the TEMP variable
9. Replace the Variable value to C:\Temp and click OK to close the window.
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.