Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

แก้ไข "Unable to Execute Files in the Temporary Directory" - วิธีแก้ด่วน

ผู้ใช้รายงานเจอ Error นี้ตอนรัน Setup File สาเหตุหลักคือ User Permissions ระบบอาจเสียหายทำให้ User ไม่มีสิทธิ์รัน Setup File

แก้ไข  Unable to Execute Files in the Temporary Directory  - วิธีแก้ด่วน

Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied

สาเหตุไม่จำกัดแค่ Permission - บางกรณีปัญหาอยู่ที่ Temp Folder ของ Windows ที่เสียหาย Error นี้ไม่ให้ติดตั้ง Executable แม้ปิด Popup แล้วก็ตาม - ปัญหาร้ายแรงสำหรับผู้ใช้ มีวิธีแก้หลายวิธี

หมายเหตุ: สร้าง System Restore Point ก่อน ป้องกันผิดพลาดใน Windows

[SOLVED] Unable To Execute Files In The Temporary Directory

ก่อนลองวิธีด้านลอง ให้ลอง Run as Administrator โปรแกรมที่ต้องการติดตั้งก่อน หายังเจอ Error ค่อยทำต่อ

วิธีที่ 1: แก้ Security Permissions บน Temp Folder

  1. Windows Key + R พิมพ์ %localappdata% Enter
  2. หาไม่เจอ ไปที่:
    C:\Users\[Username]\AppData\Local
  3. คลิกขวา Temp Folder > Properties
  4. แท็บ Security > Advanced
  5. ใน Permission Window จะเห็น 3 Entries:
    SYSTEM - Full control - inherited from C:\Users\[Username]\ - Applies to: This folder, subfolders, and files
    Administrators - Full control - inherited from C:\Users\[Username]\ - Applies to: This folder, subfolders, and files
    Your Username - Full control - inherited from C:\Users\[Username]\ - Applies to: This folder, subfolders, and files
  6. ถูก 'Replace all child object permission entries with inheritable permission entries from this object' และ Inheritance is Enabled > Apply > OK
  7. ตอนนี้ควรมี Permission เขียน Temp Directory ได้ Setup จะทำงานต่อได้

วิธีนี้ แก้ได้ส่วนใหญ่ หายังค้าง ลองวิธีต่อไป

วิธีที่ 2: เปลี่ยน Control บน Temp Folder

  1. Windows Key + R พิมพ์ %localappdata% Enter
  2. หาไม่เจอ ไปที่:
    C:\Users\[Username]\AppData\Local
  3. คลิกขวา Temp Folder > Properties
  4. แท็บ Security > Edit
  5. Add พิมพ์ Everyone > Check Names > OK
  6. ถูก Full Control, Modify, Write > OK
  7. ตอนนี้ User ทุกคนมี Full Control Temp Folder - ควร Fix Unable To Execute Files In The Temporary Directory ได้

วิธีที่ 3: สร้าง Temp Folder ใหม่

  1. Windows Key + R พิมพ์ C: เปิด C: Drive
  2. หมายเหตุ: Windows ต้องติดตั้งบน C: Drive
  3. หาไม่ได้ ไป C: Drive โดยตรง
  4. คลิกขวาพื้นที่ว่าง > New > Folder ชื่อ Temp ปิดหน้าต่าง
  5. คลิกขวา This PC/My Computer > Properties
  6. ซ้ายมือ Advanced system settings
  7. แท็บ Advanced > Environment Variables
  8. ใน User Variables สำหรับ Username คลิกสองครั้งตัวแปร TMP (หมายเหตุ: ต้องเป็น TMP ไม่ใช่ TEMP)
  9. เปลี่ยน Variable Value เป็น C:\Temp > OK
  10. ลองติดตั้งโปรแกรมใหม่ - ควรทำงานได้โดยไม่มีปัญหา

วิธีที่ 4: Miscellaneous Fixes

  1. ลอง Disable Antivirus และ Firewall ดู
  2. Disable HIPS (Host-based Intrusion Prevention System)

ขอให้โชคดี! หากยังมีคำถาม สามารถถามได้ในส่วนความคิดเห็นครับ