Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”

笔者在安装BlueJ和VMware Workstation Pro等软件时遇到如下问题:

具体错误信息如图所示:

Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”

刚开始以为系统没有启动Windows Installer服务,上网查找相关信息,需要重新安装Windows Installer,或者制作一个installer.reg注册表文件添加到注册表中,最坏的情况需要重装系统,除此之外,貌似没有其他解决方法。我们来看看具体的问题:

1.“Windows+R”打开运行,使用命令“services.msc”打开服务:Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
2.找到Windows Installer服务,手动打开,结果显示“错误2:系统找不到指定的文件”:
Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
3.可能是系统Windows Installer丢失了相关文件,双击Windows Installer服务,打开属性:
Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
4.我们可以找到可执行文件的路径,按照提示打开相应的文件夹,发现此文件丢失:
Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
5.在其他Windows10系统中按照此路径(C:\Windows\System32)找到这个文件,将它复制过来即可完美解决:
Windows10系统安装软件时显示“无法访问Windows Installer服务。Windows Installer没有正确安装时可能发生这种情况。” or “错误2:系统找不到指定的文件”
6.按照先前方法打开系统服务,找到Windows Installer服务,鼠标右键,点击启动服务,启动成功,现在即可安装相应软件。

何为Windows Installer?

Windows Installer不仅仅是一个安装程序,它还是一个可扩展的软件管理系统。Windows Installer管理软件的安装,管理软件组件的添加和删除,监视文件复原,并通过使用回滚来维护基本的灾难恢复。Windows Installer的功能包括:在安装失败时将计算机还原为原始状态:Windows Installer跟踪在程序安装过程中对系统进行的所有更改。如果安装失败,Installer可以将系统恢复到其初始状态。

由此可见它的重要性,所以一般情况下删除或者修改C盘系统文件要慎重,不然会出现不可料想的后果。