แก้ 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 เก่าทั้งหมด แล้วติดตั้งใหม่
- Win + I > Apps > Apps & features
- ค้นหา Microsoft Visual C++ Uninstall ทุกตัวที่เกี่ยวกับ 2015, 2017, 2019, 2022 (x86 และ x64)
- Reboot
- ดาวน์โหลด Visual C++ 2015-2022 Redistributable ล่าสุดจาก Microsoft (vc_redist.x64.exe + vc_redist.x86.exe)
- Run as Administrator ติดตั้ง > Reboot
วิธีที่ 2: รีเซ็ต Windows Update Components
- Win + X > Command Prompt (Admin) หรือ PowerShell (Admin)
- พิมพ์ทีละคำสั่ง 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
- Reboot > ลองติดตั้ง VC++ ใหม่
วิธีที่ 3: รัน SFC และ DISM
- CMD Admin: sfc /scannow รอเสร็จ Reboot
- CMD Admin: Dism /Online /Cleanup-Image /RestoreHealth รอเสร็จ Reboot
วิธีที่ 4: ใช้ Windows Update Troubleshooter
- Win + I > Update & Security > Troubleshoot > Additional troubleshooters
- Windows Update > Run the troubleshooter
- ทำตามขั้นตอน Reboot
วิธีที่ 5: ตรวจสอบ Windows Installer Service
- Win + R > services.msc
- หา Windows Installer > Startup: Manual > Start (ถ้ายังไม่ Run)
- Reboot > ลองติดตั้งอีกครั้ง
วิธีที่ 6: ลบ Registry Keys ที่เกี่ยวข้อง (ระวังใช้)
- Win + R > regedit
- Backup Registry ก่อน (File > Export)
- ลบ Keys ต่อไป (ถ้ามี):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID_VC++_2015} HKEY_CLASSES_ROOT\Installer\Products\ - Reboot > ติดตั้ง VC++ ใหม่
วิธีที่ 7: ติดตั้งแบบ Offline/Manual (บypass Windows Update)
- ดาวน์โหลด vc_redist.x64.exe และ vc_redist.x86.exe จาก Microsoft Official
- Copy ไปโฟลเดอร์สะดวก (เช่น C:\VC++)
- CMD Admin ไปโฟลเดอร์นั้น พิมพ์:
vc_redist.x64.exe /install /quiet /norestart vc_redist.x86.exe /install /quiet /norestart
- Reboot
วิธีที่ 8: Clean Boot แล้วติดตั้ง
- Win + R > msconfig > Services Tab > ติ๊ก Hide all Microsoft services > Disable all
- Startup Tab > Open Task Manager > Disable ทุก Startup Items
- Apply OK Reboot
- ติดตั้ง VC++ ใน Clean Boot State
- กลับ msconfig เปิด Services/Startup กลับมา Normal Startup Reboot
วิธีที่ 9: ตรวจสอบ Disk Space และ Permissions
- เช็ค C: มีพื้นที่ว่างพอ (ขั้นต่ำ 2-3 GB)
- Run CMD Admin: icacls C:\Windows\WinSxS /reset /t /c /q (Reset Permissions)
- 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 สำเร็จแล้วครับ ถามได้ในความคิดเห็นนะครับ