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

แก้ไขข้อผิดพลาด Windows Installer 'Access Denied' ใน Windows 10

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

แก้ไขข้อผิดพลาด Windows Installer Access Denied: หากคุณเจอข้อความ "Access Denied" ขณะพยายามติดตั้งโปรแกรมใหม่ใน Windows 10 หรือเจอข้อผิดพลาด Msiexec.exe Access is Denied คุณมาถูกที่แล้ว เพราะวันนี้เราจะแก้ปัญหานี้ สาเหตุหลักดูเหมือนจะเป็นไฟล์ Windows Installer ที่เสียหายหรือเสียหาย

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

เมื่อคุณพยายามติดตั้งหรือถอนโปรแกรมจาก Windows 10 คุณอาจได้รับข้อความเตือนใดข้อความหนึ่งต่อไปนี้:

The Windows Installer Service could not be accessed
Windows Installer Service couldn't be started
Could not start the Windows Installer service on Local Computer. Error 5: Access is denied.

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

เพื่อแก้ไขสาเหตุพื้นฐานของปัญหานี้ เราต้องลงทะเบียนใหม่ (re-register) ไฟล์ Windows Installer หรือบางครั้งเพียงแค่รีสตาร์ทบริการ Windows Installer ก็แก้ปัญหาได้ ดังนั้นโดยไม่เสียเวลา เรามาดูวิธีแก้ไขข้อผิดพลาด Windows Installer Access Denied ด้วยคู่มือด้านล่างนี้

แก้ไขข้อผิดพลาด Windows Installer Access Denied

โปรดสร้าง Restore Point ก่อน 以防万一發生錯誤

วิธีที่ 1: รีสตาร์ทบริการ Windows Installer

1. กด Windows Key + R พิมพ์ services.msc แล้วกด Enter

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

2. หา Windows Installer service คลิกขวาและเลือก Properties

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

3. คลิก Start หากบริการยังไม่รัน

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

4. หากบริการกำลังรันอยู่ ให้คลิกขวาและเลือก Restart

5. ลองติดตั้งโปรแกรมที่ให้ข้อผิดพลาด Access denied อีกครั้ง

วิธีที่ 2: ลงทะเบียน Windows Installer ใหม่ (Re-register)

1. กด Windows Key + X เลือก Command Prompt (Admin)

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

2. พิมพ์คำสั่งต่อไปนี้ใน cmd และกด Enter:

msiexec /unreg

msiexec /regserver

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

3. รีบูทคอมพิวเตอร์

4. หากปัญหาไม่แก้ไข ให้กด Windows Key + R พิมพ์ต่อไปนี้และกด Enter:

%windir%\system32

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

5. ค้นหาไฟล์ Msiexec.exe แล้วจดที่อยู่ที่แน่นอน ซึ่งจะเป็นแบบนี้:

C:\WINDOWS\system32\Msiexec.exe

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

6. กด Windows Key + R พิมพ์ regedit แล้วกด Enter เพื่อเปิด Registry Editor

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

7. ไปที่ Registry key ต่อไปนี้:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer

8. เลือก MSIServer ในหน้าต่างด้านขวา คลิกสองครั้งที่ ImagePath

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

9. พิมพ์ที่อยู่ของไฟล์ Msiexec.exe ที่คุณจดไว้ข้างต้น ในช่อง Value data ตามด้วย "/V" จะได้ประมาณนี้:

C:\WINDOWS\system32\Msiexec.exe /V

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

10. บูทคอมพิวเตอร์เข้า Safe Mode ด้วยวิธีใดก็ได้ที่ระบุไว้

11. กด Windows Key + X เลือก Command Prompt (Admin)

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

12. พิมพ์คำสั่งต่อไปนี้และกด Enter:

msiexec /regserver

%windir%\Syswow64\Msiexec /regserver

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

13. ปิดทุกอย่าง และบูทคอมพิวเตอร์ปกติ ดูว่าสามารถ แก้ไขข้อผิดพลาด Windows Installer Access Denied ได้หรือไม่ หากไม่ได้ ให้ทำวิธีถัดไป

วิธีที่ 3: รีเซ็ตบริการ Windows Installer

1. เปิด Notepad คัดลอกและวางข้อความต่อไปนี้ไป:

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver] "DisplayName"="@%SystemRoot%\\system32\\msimsg.dll,-27" "ImagePath"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,\ 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,\ 00,73,00,69,00,65,00,78,00,65,00,63,00,20,00,2f,00,56,00,00,00 "Description"="@%SystemRoot%\\system32\\msimsg.dll,-32" "ObjectName"="LocalSystem" "ErrorControl"=dword:00000001 "Start"=dword:00000003 "Type"=dword:00000010 "DependOnService"=hex(7):72,00,70,00,63,00,73,00,73,00,00,00,00,00 "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,\ 00,69,00,6c,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,74,00,65,\ 00,50,00,61,00,67,00,65,00,66,00,69,00,6c,00,65,00,50,00,72,00,69,00,76,\ 00,69,00,6c,00,65,00,00,00,53,00,65,00,4c,00,6f,00,63,00,6b,00,4d,00,65,\ 00,6d,00,6f,00,72,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,\ 00,53,00,65,00,49,00,6e,00,63,00,72,00,65,00,61,00,73,00,65,00,42,00,61,\ 00,73,00,65,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,\ 00,65,00,43,00,72,00,65,00,61,00,74,00,65,00,50,00,65,00,72,00,6d,00,61,\ 00,6e,00,65,00,6e,00,74,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,\ 00,53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,\ 00,6c,00,65,00,00,00,53,00,65,00,53,00,65,00,63,00,75,00,72,00,69,00,74,\ 00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,00,65,00,43,\ 00,68,00,61,00,6e,00,67,00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,\ 00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,00,65,00,50,00,72,00,6f,\ 00,66,00,69,00,6c,00,65,00,53,00,69,00,6e,00,67,00,6c,00,65,00,50,00,72,\ 00,6f,00,63,00,65,00,73,00,73,00,50,00,69,00,76,00,69,00,6c,00,65,00,00,\ 00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,00,61,00,74,\ 00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,00,65,00,43,\ 00,72,00,65,00,61,00,74,00,65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,\ 00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,00,65,00,41,00,73,00,73,\ 00,69,00,67,00,6e,00,50,00,72,00,69,00,6d,00,61,00,72,00,79,00,54,00,6f,\ 00,6b,00,65,00,6e,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,\ 00,65,00,52,00,65,00,73,00,74,00,6f,00,72,00,65,00,50,00,72,00,69,00,76,\ 00,69,00,6c,00,65,00,00,00,53,00,65,00,49,00,6e,00,63,00,72,00,65,00,61,\ 00,73,00,65,00,51,00,75,00,6f,00,74,00,61,00,50,00,72,00,69,00,76,00,69,\ 00,6c,00,65,00,00,00,53,00,65,00,53,00,68,00,75,00,74,00,64,00,6f,00,77,\ 00,6e,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,00,00,53,00,65,00,54,\ 00,61,00,6b,00,65,00,4f,00,77,00,6e,00,65,00,72,00,73,00,68,00,69,00,70,\ 00,70,00,69,00,6c,00,65,00,00,00,53,00,65,00,4c,00,6f,00,61,00,64,00,64,\ 00,72,00,69,00,76,00,65,00,6c,00,65,00,00,00,00,00 "FailureActions"=hex:84,03,00,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\ 00,01,00,00,00,c0,d4,01,00,01,00,00,00,e0,93,04,00,00,00,00,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver\Enum] "0"="Root\\LEGACY_MSISERVER\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001

2. จากเมนู Notepad คลิก File แล้ว Save As

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

3. จาก dropdown Save as type เลือก All Files

4. ตั้งชื่อไฟล์ว่า MSIrepair.reg (นามสกุล .reg สำคัญมาก)

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

5. ไปที่ Desktop หรือที่ต้องการบันทึก แล้วคลิก Save

6. คลิกขวาที่ไฟล์ MSI repair.reg และเลือก Run as Administrator

7. รีบูทคอมพิวเตอร์ และดูว่าสามารถ แก้ไขข้อผิดพลาด Windows Installer Access Denied ได้หรือไม่

วิธีที่ 4: ติดตั้ง Windows Installer ใหม่ (Reinstall)

หมายเหตุ: ใช้ได้กับ Windows เวอร์ชันเก่าเท่านั้น

1. กด Windows Key + X เลือก Command Prompt (Admin)

แก้ไขข้อผิดพลาด Windows Installer  Access Denied  ใน Windows 10

2. พิมพ์คำสั่งต่อไปนี้ใน cmd และกด Enter ทีละคำสั่ง:

cd %windir%\system32 attrib -r -s -h dllcache ren msi.dll msi.old ren msiexec.exe msiexec.old ren msihnd.dll msihnd.old exit

3. รีบูทคอมพิวเตอร์ แล้วดาวน์โหลด Windows Installer 4.5 Redistributable จากเว็บไซต์ Microsoft

4. ติดตั้งแพ็กเกจ Redistributable และ รีบูทคอมพิวเตอร์

แนะนำเพิ่มเติม:

  • ลบ Administrative Tools ใน Windows 10
  • แก้ไข Broken Task Scheduler ใน Windows 10
  • เปลี่ยนระดับแบตเตอรี่ Critical บน Windows 10
  • แก้ไข ffmpeg.exe has stopped working error

เรียบร้อยแล้ว คุณได้ แก้ไขข้อผิดพลาด Windows Installer Access Denied สำเร็จแล้ว หากยังมีคำถาม สามารถถามได้ในส่วนความคิดเห็น