Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

แก้ไขข้อผิดพลาดติดตั้ง .NET Framework 3.5 รหัส 0x800F0950 ใน Windows 11

คู่มือแก้ไขข้อผิดพลาด 0x800F0950 เมื่อติดตั้ง .NET Framework บน Windows 11/10 หลายคนเจอข้อผิดพลาดตอนติดตั้ง .NET Framework 3.5 หรือรันแอปที่ต้องการ ข้อความ:

The following feature couldn’t be installed:
.NET Framework 3.5 (includes .NET 2.0 and 3.0)
The changes couldn’t be completed. Please reboot your computer and try again.
Error code: 0x800F0950

สาเหตุไม่ชัดเจน แต่อาจมาจากการติดตั้งถูกขัดจังหวะ (Power failure) หรือยังไม่ได้ติดตั้ง Windows Updates ที่ค้างอยู่ หรือไฟล์ระบบเสียหาย

แก้ไขข้อผิดพลาดติดตั้ง .NET Framework 3.5 รหัส 0x800F0950 ใน Windows 11

Fix .NET Framework 3.5 Installation Error 0x800F0950

  1. รัน .NET Framework Repair Tool
  2. Enable .NET Framework ด้วย DISM Command
  3. ติดตั้ง Pending Windows Update
  4. ติดตั้ง .NET Framework 3.5 ผ่าน Windows Features (Windows 10 เท่านั้น)
  5. สร้าง Custom Installation Script (Windows 10 เท่านั้น)
  6. ติดตั้ง .NET Framework 4.8 จาก Microsoft (Windows 11 เท่านั้น)
  7. Repair Install Windows

1] รัน .NET Framework Repair Tool

ดาวน์โหลดจากเว็บ Microsoft รันติดตั้งให้สิทธิ์ Admin ตามหน้าจอ สแกนและซ่อมแซม รีสตาร์ท ตรวจสอบ

2] Enable .NET Framework ด้วย DISM Command

  1. เสียบ Installation Media (USB/DVD) หรือ Mount ISO
  2. เปิด Command Prompt Admin
  3. รันคำสั่ง (แทน X ด้วย Drive letter ของ Media):
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:X:\sources\sxs /LimitAccess
  4. รีบูท ตรวจสอบ

3] ติดตั้ง Pending Windows Update

Settings (Win+I) > Windows Update > Check for updates ติดตั้งทั้งหมด อาจมี .NET Framework 3.5 อยู่ใน Update

4] ติดตั้ง .NET Framework 3.5 ผ่าน Windows Features (Windows 10)

  1. Win+R พิมพ์ appwiz.cpl Enter
  2. คลิก Turn Windows features on or off (ซ้าย)
  3. ติ๊ก .NET Framework 3.5 (includes .NET 2.0 and 3.0)
  4. OK > Yes รอเสร็จ รีบูท

5] สร้าง Custom CMD Installation Script (Windows 10)

รัน Notepad Admin วางสคริปต์ (แทน XX ด้วย Drive letter Media):

@echo off
Title .NET Framework 3.5 Offline Installer
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\sources\install.wim" set setupdrv=%%I
if defined setupdrv (
 echo Found drive %setupdrv%
 echo Installing .NET Framework 3.5...
 Dism /online /enable-feature /featurename:NetFX3 /All /Source:XX:\sources\sxs /LimitAccess
 echo.
 echo .NET Framework 3.5 should be installed
 echo.
) else (
 echo No installation media found!
 echo Insert DVD or USB flash drive and run this file once again.
 echo.
)
pause

Save as .cmd (All Files) รันเป็น Admin รอเสร็จ รีบูท

6] ติดตั้ง .NET Framework 4.8 จาก Microsoft (Windows 11)

บางเกมต้องการ .NET 3.5 และเวอร์ชันใหม่ๆ ดาวน์โหลด .NET Framework 4.8 จากหน้า Microsoft DotNET ติดตั้ง รีบูท

7] Repair Install Windows

หาไม่ได้ ลอง Repair Install Windows เพื่อแก้ไขการเสียหายของระบบ

How do I install the .NET framework on Windows 11?

ใช้ Installer จากเว็บ DotNET อย่างเป็นทางการ หรือใช้ Installation Media รันคำสั่ง ตามวิธีข้างต้น

How do I fix .NET Framework 3.5 installation error?

ตรวจสอบอินเทอร์เน็ต หรือใช้ Installation Media เปิด Group Policy: Specify settings for optional component installation and component repair