修复 Windows 安装程序访问被拒绝错误

修复 Windows Installer 访问被拒绝错误: (Fix Windows Installer Access Denied Error: )如果您在尝试在Windows 10上安装新程序时遇到错误消息“访问被拒绝”,或者如果您遇到Msiexec.exe 访问(Msiexec.exe Access)拒绝错误(Denied Error),那么您今天来对地方了我们将解决这个问题。该错误的主要原因似乎是Windows Installer文件损坏或损坏。

修复 Windows 安装程序访问被拒绝错误

当您尝试从Windows 10安装或卸载程序时,您可能会收到以下任一警告消息:

无法访问(The Windows Installer Service could not be accessed)
Windows Installer 服务 无法(Windows Installer Service couldn’t be started)
启动 Windows Installer 服务 无法在本地计算机上启动 Windows Installer 服务。错误 5:访问被拒绝。(Could not start the Windows Installer service on Local Computer. Error 5: Access is denied.)

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

为了解决此问题的根本原因,我们需要重新注册Windows Installer文件,或者有时只需重新启动Windows Installer服务似乎可以解决此问题。因此,不要浪费任何时间,让我们看看如何在下面列出的指南的帮助下实际修复 Windows Installer 访问被拒绝错误。(Fix Windows Installer Access Denied Error)

修复 Windows 安装程序访问被拒绝错误(Fix Windows Installer Access Denied Error)

确保 创建一个还原点(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.再次尝试安装出现拒绝访问错误的程序。

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

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

命令提示符管理员

2.在 cmd 中键入以下命令并按Enter

msiexec /unreg

msiexec /regserver

重新注册 Windows 安装程序

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

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

%windir%\system32

开放系统 32 %windir%system32

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

C:\WINDOWS\system32\Msiexec.exe

记下 System 32 文件夹中 msiexec.exe 文件的确切地址

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

运行命令 regedit

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer

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

双击 msiserver 注册表项下的 ImagePath

9.现在在值数据字段中键入您上面提到的Msiexec.exe(Msiexec.exe)文件的位置,后跟“/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。查看您是否能够 修复 Windows Installer Access Denied Error(Fix Windows Installer Access Denied Error),如果不能,则继续下一个方法。

方法 3:重置 Windows Installer 服务(Method 3: 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 安装程序访问被拒绝错误。(Fix Windows Installer Access Denied Error.)

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

注意:(Note:)适用(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

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

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

受到推崇的:(Recommended:)

就是这样,您已成功修复 Windows 安装程序访问被拒绝错误(Fix Windows Installer Access Denied Error),但如果您对本指南仍有任何疑问,请随时在评论部分询问。



About the author

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



Related posts