Fix Developer Mode package failed to install Error code 0x80004005: Error นี้บ่งบอกว่า Components เพิ่มเติมที่ OS ต้องการสำหรับ Debugging features ใน Windows Device Portal หรือ Visual Studio ติดตั้งอัตโนมัติไม่ได้ ใน Windows 10 Developer Mode ใช้ทดสอบแอปที่พัฒนาเอง สามารถเปิดได้ที่ Settings > Update & Security > For developers > Developer mode แต่บางคนเจอข้อผิดพลาด:
Developer Mode package failed to install. Error code: 0x80004005
ปัญหานี้บล็อกการทดสอบแอป กีดกั้นนักพัฒนา มา Troubleshoot กัน
Fix Developer Mode package failed to install Error code 0x80004005
ควรสร้าง Restore Point ก่อน
วิธีที่ 1: ติดตั้ง Developer Mode ด้วยตนเอง
- Windows Key + I เปิด Windows Settings
- คลิก System เลือก Apps & features
- เลือก Manage Optional features บนสุด
- คลิก Add a feature
- เลื่อนหา Windows Developer Mode package คลิก Install
- รีบูท
- Windows Key + X เลือก Command Prompt (Admin)
- พิมพ์คำสั่งใน cmd Enter:
sc config debugregsvc start=auto sc start debugregsvc
- กลับไปหน้า For Developers Settings จะยังเห็น Error 0x80004005 แต่ควรเปิดใช้งาน Windows Device Portal และ Device Discovery ได้แล้ว
วิธีที่ 2: ปิด Custom Microsoft Software Update Services (SUS)
- Windows Key + R พิมพ์ regedit Enter เปิด Registry Editor
- ไป Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
- ดับเบิลคลิก UseWUServer ด้านขวา ตั้งค่าเป็น 0 เพื่อ Disable UseWUServer
- Windows Key + X คลิก Command Prompt (Admin)
- พิมพ์คำสั่งทีละบรรทัด Enter:
net stop wuauserv net stop bits net stop cryptsvc net start wuauserv net stop bits net stop cryptsvc
- ปิด Command Prompt รีบูท
แนะนำเพิ่มเติม:
- Fix Office Activation Error Code 0xC004F074
- Perform Clean boot in Windows
- Fix Windows 10 Update error 0x8000ffff
- Windows Explorer has stopped working [SOLVED]
เสร็จสิ้น Fix Developer Mode package failed to install Error code 0x80004005 หากยังมีข้อสงสัย ถามได้ในส่วนความคิดเห็น