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

แก้ Microsoft Visual C++ 2015 Redistributable Setup Fails Error 0x80240017

แก้ Microsoft Visual C++ 2015 Redistributable Setup Fails Error 0x80240017: Error 0x80240017 ขึ้นตอนติดตั้ง VC++ 2015 Redistributable มักเกี่ยวข้องกับ Windows Update Components ที่เสียหาย หรือการติดตั้งซ้ำซ้อน/ขัดแย้ง วันนี้มาแก้ครับ

สาเหตุ Error 0x80240017

  • Windows Update Components เสียหาย/หยุดทำงาน
  • มี VC++ Redistributable เวอร์ชันเก่า/ใหม่ขัดแย้งอยู่แล้ว
  • System Files เสียหาย
  • Windows Installer Service มีปัญหา
  • Permission/Registry Issues

วิธีแก้ Error 0x80240017

สร้าง Restore Point ก่อนครับ

วิธีที่ 1: Uninstall VC++ Redistributable เก่าทั้งหมด แล้วติดตั้งใหม่

  1. Win + I > Apps > Apps & features
  2. ค้นหา Microsoft Visual C++ Uninstall ทุกตัวที่เกี่ยวกับ 2015, 2017, 2019, 2022 (x86 และ x64)
  3. Reboot
  4. ดาวน์โหลด Visual C++ 2015-2022 Redistributable ล่าสุดจาก Microsoft (vc_redist.x64.exe + vc_redist.x86.exe)
  5. Run as Administrator ติดตั้ง > Reboot

วิธีที่ 2: รีเซ็ต Windows Update Components

  1. Win + X > Command Prompt (Admin) หรือ PowerShell (Admin)
  2. พิมพ์ทีละคำสั่ง Enter:
    net stop wuauserv
    net stop bits
    net stop cryptsvc
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    net start wuauserv
    net start bits
    net start cryptsvc
  3. Reboot > ลองติดตั้ง VC++ ใหม่

วิธีที่ 3: รัน SFC และ DISM

  1. CMD Admin: sfc /scannow รอเสร็จ Reboot
  2. CMD Admin: Dism /Online /Cleanup-Image /RestoreHealth รอเสร็จ Reboot

วิธีที่ 4: ใช้ Windows Update Troubleshooter

  1. Win + I > Update & Security > Troubleshoot > Additional troubleshooters
  2. Windows Update > Run the troubleshooter
  3. ทำตามขั้นตอน Reboot

วิธีที่ 5: ตรวจสอบ Windows Installer Service

  1. Win + R > services.msc
  2. หา Windows Installer > Startup: Manual > Start (ถ้ายังไม่ Run)
  3. Reboot > ลองติดตั้งอีกครั้ง

วิธีที่ 6: ลบ Registry Keys ที่เกี่ยวข้อง (ระวังใช้)

  1. Win + R > regedit
  2. Backup Registry ก่อน (File > Export)
  3. ลบ Keys ต่อไป (ถ้ามี):
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID_VC++_2015}
    HKEY_CLASSES_ROOT\Installer\Products\
  4. Reboot > ติดตั้ง VC++ ใหม่

วิธีที่ 7: ติดตั้งแบบ Offline/Manual (บypass Windows Update)

  1. ดาวน์โหลด vc_redist.x64.exe และ vc_redist.x86.exe จาก Microsoft Official
  2. Copy ไปโฟลเดอร์สะดวก (เช่น C:\VC++)
  3. CMD Admin ไปโฟลเดอร์นั้น พิมพ์:
    vc_redist.x64.exe /install /quiet /norestart
    vc_redist.x86.exe /install /quiet /norestart
  4. Reboot

วิธีที่ 8: Clean Boot แล้วติดตั้ง

  1. Win + R > msconfig > Services Tab > ติ๊ก Hide all Microsoft services > Disable all
  2. Startup Tab > Open Task Manager > Disable ทุก Startup Items
  3. Apply OK Reboot
  4. ติดตั้ง VC++ ใน Clean Boot State
  5. กลับ msconfig เปิด Services/Startup กลับมา Normal Startup Reboot

วิธีที่ 9: ตรวจสอบ Disk Space และ Permissions

  1. เช็ค C: มีพื้นที่ว่างพอ (ขั้นต่ำ 2-3 GB)
  2. Run CMD Admin: icacls C:\Windows\WinSxS /reset /t /c /q (Reset Permissions)
  3. Reboot

บทความแนะนำ:

  • แก้ Printer Offline Windows 10
  • แก้ Encrypt Contents To Secure Data Grayed Out
  • แก้ USB Tethering ไม่ทำงาน Windows 10
  • แก้ api-ms-win-crt-runtime-l1-1-0.dll Missing

แก้ Visual C++ 2015 Redistributable Error 0x80240017 สำเร็จแล้วครับ ถามได้ในความคิดเห็นนะครับ