“无法访问 Windows Installer 服务”[已解决]

修复无法访问 Windows Installer 服务: (Fix The Windows Installer service could not be accessed: )如果您尝试安装使用MSI文件作为安装程序的程序,那么您可能会遇到错误消息“无法访问Windows Installer服务”。(Windows Installer)当您尝试安装Microsoft Office 时也会出现此问题,因为它也使用Windows Installer当您安装或卸载使用Microsoft Installer(Microsoft Installer)服务的程序、Windows Installer服务未运行或Windows Installer注册表设置损坏时,将弹出错误消息。

无法访问 Windows Installer 服务。如果未正确安装 Windows Installer,则可能会发生这种情况。请联系您的支持人员寻求帮助。(The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.)

修复 Windows Installer 服务无法访问错误

现在我们只列出了少数可能导致上述错误的问题,但这通常取决于用户的系统配置,以了解他们为什么面临特定错误。因此,不要浪费任何时间,让我们看看如何在下面列出的故障排除指南的帮助下修复无法访问Windows Installer服务。(Windows Installer)

“无法访问Windows Installer服务”[已解决](Windows Installer)

确保 创建一个还原点(create a restore point) 以防万一出现问题。

方法一:重启 Windows Installer 服务(Method 1: Restart Windows Installer Service)

1.按 Windows 键 + R 然后键入services.msc并按 Enter。

服务窗口

2.找到Windows Installer 服务(Windows Installer service),然后右键单击它并选择属性。(Properties.)

右键单击 Windows 安装程序服务,然后选择属性

3.如果服务尚未运行,请单击开始。(Start)

如果 Windows Installer 服务尚未运行,请单击开始

4.如果服务已经在运行,则右键单击并选择重新启动。(Restart.)

5.再次尝试安装出现拒绝访问错误的程序。

方法二:修改远程过程调用服务(Method 2: Modify Remote Procedure Call Service)

1.按 Windows 键 + R 然后键入services.msc并按 Enter。

服务窗口

2.找到远程过程调用(RPC)(Remote Procedure Call (RPC))服务,然后双击它打开它的属性。

右键单击远程过程调用服务并选择属性

3.切换到登录选项卡(Log On tab),然后勾选“本地系统帐户(Local System account)”和“允许服务与桌面交互。(Allow service to interact with desktop.)

选中远程过程调用的本地系统帐户

4.重新启动您的 PC 以保存更改并查看您是否能够修复错误。

5.如果没有,则再次打开RPC属性窗口并切换到登录选项卡。(Log On tab.)

6.选中“此帐户(This account)”并单击浏览(browse),然后键入“网络服务(Network Service)”并单击“确定”。密码会自动填写,请勿更改。

选中此帐户,然后单击浏览并选择网络服务

7.如果找不到网络(Network)服务,请使用以下地址:

NT Authority\NetworkService

8.重新启动您的PC,看看您是否能够 修复无法访问Windows Installer服务的错误。( Fix The Windows Installer service could not be accessed error.)

方法 3:重新注册 Windows Installer(Method 3: Re-register Windows Installer)

1.按Windows Key + X然后选择命令提示符(管理员)。(Command Prompt (Admin).)

命令提示符管理员

2.在cmd中输入(Enter)以下命令并在每个命令后按Enter:

%windir%\system32\msiexec.exe /unregister
%windir%\system32\msiexec.exe /regserver
%windir%\syswow64\msiexec.exe /unregister
%windir%\syswow64\msiexec.exe /regserver

重新注册 Windows 安装程序

3.重新启动您的 PC 以保存更改。

4.如果问题未解决,请按Windows键 + R,然后键入以下内容并按 Enter:

%windir%\system32

开放系统 32 %windir%system32

5.找到Msiexec.exe文件,然后记下文件的确切地址,如下所示:

C:\WINDOWS\system32\Msiexec.exe

记下 System32 下 msiexec.exe 的位置

6.按 Windows 键 + R 然后键入regedit并按Enter打开注册表编辑器(Registry Editor)

7.导航到以下注册表项:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer

8.选择MSIServer,然后在右侧窗格中双击ImagePath。

双击 msiserver 注册表项下的 ImagePath

9.现在在值数据字段中键入您上面提到的Msiexec.exe 文件( Msiexec.exe file)的位置,后跟“/V”,整个事情看起来像:

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

更改 ImagePath 字符串的值

10. 使用此处列出的任何方法将您的 PC 引导至安全模式(methods listed here.)

11.按Windows Key + X,然后选择命令提示符(管理员)。(Command Prompt (Admin).)

命令提示符管理员

12.键入以下命令并按Enter

msiexec /regserver

%windir%\Syswow64\Msiexec /regserver

重新注册 msiexec 或 windows 安装程序

13.关闭一切并正常启动您的PC。

方法 4:重置 Windows Installer 服务(Method 4: Reset the Windows Installer Service)

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,67,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,67,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,67,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,6f,00,72,00,69,00,74,\
00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,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,67,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,67,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,67,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,67,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,67,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,67,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,67,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,67,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,67,\
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,67,\
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,67,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,\
50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,4c,\
00,6f,00,61,00,64,00,44,00,72,00,69,00,76,00,65,00,72,00,50,00,72,00,69,00,\
76,00,69,00,6c,00,65,00,67,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.现在从记事本菜单中单击文件(File),然后单击另存为。(Save As.)

从记事本菜单中单击文件,然后选择另存为

3.从保存(Save as)类型下拉列表中选择所有文件。(All Files.)

4.将文件命名为MSIrepair.reg(reg扩展非常重要)。

键入 MSIrepair.reg 并从另存为类型中选择所有文件

5.导航到桌面或要保存文件的位置,然后单击保存。(Save.)

6.现在右键单击MSI repair.reg 文件并选择以管理员身份运行。(Run as Administrator.)

7.重新启动您的 PC 以保存更改并查看您是否能够 修复无法访问 Windows Installer 服务。(Fix The Windows Installer service could not be accessed.)

方法 5:重新安装 Windows 安装程序(Method 5: Reinstall Windows Installer)

注意:仅适用(Applied)于早期版本的 Windows

1.按Windows Key + X然后选择命令提示符(管理员)。(Command Prompt (Admin).)

具有管理员权限的命令提示符

2.在cmd中输入(Enter)以下命令并在每个命令后按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

重新安装 Windows 安装程序

3.重新启动您的 PC,然后从Microsoft 网站下载(Microsoft website)Windows Installer 4.5 Redistributable

4.安装 Redistributable 包,然后重新启动您的 PC。

为你推荐:(Recommended for you:)

就是这样,您已成功修复无法访问 Windows Installer 服务错误(Fix The Windows Installer service could not be accessed error),但如果您对本指南仍有任何疑问,请随时在评论部分询问。



About the author

我是一名专业的音频工程师,拥有超过 10 年的经验。我参与过各种各样的项目,从小型家庭音响系统到大型商业制作。我的技能在于创造出色的配乐和声音处理工具,让音乐听起来很棒。我对 Windows 10 也非常有经验,可以帮助您充分利用您的计算机系统。



Related posts