Khắc phục lỗi Windows Installer Access Denied: Nếu gặp thông báo "Access Denied" khi cài đặt chương trình mới trên Windows 10, hoặc lỗi "Msiexec.exe Access is Denied", bạn đã đến đúng nơi. Nguyên nhân chính là các tệp Windows Installer bị hỏng/hư hỏng.
Khi cài đặt/gỡ chương trình, bạn có thể gặp các cảnh báo sau:
- 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.
Để khắc phục nguyên nhân gốc rễ, cần đăng ký lại tệp Windows Installer hoặc đơn giản khởi động lại dịch vụ Windows Installer. Dưới đây là hướng dẫn chi tiết.
Khắc phục lỗi Windows Installer Access Denied
Lưu ý: Tạo điểm khôi phục hệ thống trước.
Phương pháp 1: Khởi động lại dịch vụ Windows Installer
- Windows + R > services.msc > Enter.
- Tìm Windows Installer > chuột phải > Thuộc tính.
- Nhấp Bắt đầu (Start) nếu dịch vụ chưa chạy.
- Nếu đã chạy, chuột phải > Khởi động lại (Restart).
- Thử cài lại chương trình bị lỗi.
Phương pháp 2: Đăng ký lại Windows Installer
- Windows + X > Command Prompt (Admin).
- Chạy lần lượt 2 lệnh:
msiexec /unreg
msiexec /regserver - Khởi động lại máy.
- Nếu chưa khắc phục: Windows + R > nhập
%windir%\system32> Enter. - Tìm Msiexec.exe, ghi nhớ đường dẫn chính xác (ví dụ:
C:\WINDOWS\system32\Msiexec.exe). - Windows + R > regedit > Enter.
- Điều hướng:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer - Chọn MSIServer > bên phải nhấp đúp ImagePath.
- Nhập đường dẫn Msiexec.exe vừa ghi nhớ, thêm /V ở cuối:
C:\WINDOWS\system32\Msiexec.exe /V - Khởi động vào Safe Mode (theo các phương pháp tại đây).
- Trong Safe Mode: Windows + X > Command Prompt (Admin).
- Chạy 2 lệnh:
msiexec /regserver
%windir%\Syswow64\Msiexec /regserver - Đóng tất cả > khởi động bình thường > kiểm tra. Nếu chưa được, tiếp phương pháp 3.
Phương pháp 3: Đặt lại dịch vụ Windows Installer qua Registry
- Mở Notepad > sao chép toàn bộ nội dung registry sau và dán vào:
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,\ 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,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,72,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,50,00,69,00,6e,00,67,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,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,70,00,68,00,69,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,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
- Menu Notepad > File > Lưu dưới dạng (Save As).
- Loại lưu: All Files.
- Đặt tên: MSIrepair.reg (phải có đuôi .reg).
- Lưu ra Desktop hoặc vị trí bất kỳ.
- Chuột phải file MSIrepair.reg > Chạy với tư cách Quản trị viên.
- Khởi động lại máy > kiểm tra.
Phương pháp 4: Cài đặt lại Windows Installer
Lưu ý: Chỉ áp dụng cho các phiên bản Windows cũ hơn.
- Windows + X > Command Prompt (Admin).
- Chạy lần lượt:
cd %windir%\system32
attrib -r -s -h dllcache
ren msi.dll msi.old
ren msiexec.exe msiexec.old
ren msihnd.dll msihnd.old
exit - Khởi động lại máy.
- Tải Windows Installer 4.5 Redistributable từ trang Microsoft > cài đặt > khởi động lại.
Bài viết liên quan:
- Gỡ Công cụ quản trị trong Windows 10
- Khắc phục Task Scheduler bị hỏng Windows 10
- Thay đổi mức pin quan trọng trên Windows 10
- Khắc phục lỗi ffmpeg.exe has stopped working
Chúc bạn khắc phục thành công lỗi Windows Installer Access Denied. Còn thắc mắc? Hãy bình luận.