gpt4 book ai didi

exe - 无法访问 Windows Installer 服务。如果未正确安装 Windows Installer,则可能会发生这种情况

转载 作者:行者123 更新时间:2023-12-04 10:46:10 25 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

10 个月前关闭。




Improve this question




当我尝试在 Windows Server 2012 R2 上安装 EXE 文件时遇到问题。当我尝试执行 EXE 或 MSI 文件时,出现以下错误:“无法访问 Windows Installer 服务。如果 Windows Installer 安装不正确,可能会发生这种情况。联系您的支持人员寻求帮助。”

我尝试了以下方法来解决问题,但没有任何效果。

方法一:

我试图注销并重新注册 msiexec 文件

%windir%\system32\msiexec.exe /unregister

%windir%\system32\msiexec.exe /regserver

%windir%\syswow64\msiexec.exe /unregister

%windir%\syswow64\msiexec.exe /regserver



方法二

net stop msiserver

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"

net stop msiserver

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"

net start msiserver



方法三

Browsed the registry editor to locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver. Created following key WOW64 REG_DWORD 0x00000000



我确实在每种方法之后重新启动了服务器,甚至尝试将注册表项从工作服务器导出到问题服务器。尽管如此,问题仍未解决。

有没有其他解决方案我可以尝试解决这个问题。我不想从头开始重建服务器。请帮忙

问候,
纳雷什

最佳答案

免责声明 :以下只是旨在列出任何内容的选项列表。我不确定某些选项是否有用,但它们会在下次记住它们时使用:

UPDATE: Please check the bottom suggestion first: DISM.EXE. This is what worked in this case says the original poster (added after he reported it).



Quick Suggestions:

  • Currupt Setup: I would try a different MSI file to install, in order to make sure the one you test with is not corrupted. Reboot too - if you can (strict on some servers) - to resolve any locks.
  • Disk Errors: Scan your disk to make sure it has no errors AND that it has space available.
  • Disk Space: Lack of disk space can cause a lot more problems than what is taken seriously. It is a serious problem in the age of tiny SSD disks. Try to clean out your system disk in particular.
  • Logs: Check for clues in the event log as to what might be wrong (if anything in particular).
  • Malware: Run a malware scan with whatever tool you have available to do so. Check your setup.exe by uploading it to https://www.virustotal.com/
  • Sfc.exe: Run sfc.exe to scan for system file corruption (see tool described below). You can run sfc.exe directly, if youhave no good malware scanner available or it also fails to run.
  • Anti-Virus: Try to disable any malware scanners if you have them running. They could block things (usually for a reason - infection for example), and prevent the installation.
  • Policies: Glance over group policies to verify that nothing there is blocked. See below.
  • Terminal Server: Make sure you are not on a terminal server. If you are, see below.


基本检查 :这将是一个通用的检查 list ,请耐心等待,包括您已经尝试过的内容,以及坦率地说我不确定是否相关的一些条目:
  • 安装程序文件损坏 :在尝试其他任何事情之前,请尝试运行不同的安装程序。您手上可能有损坏的安装程序文件。这实际上很常见,可能需要很长时间才能发现。
  • 待重启 : 是否有挂起的重启?你能重新启动服务器吗?尝试一下。我已经看到一些 Windows 更新阻止安装,直到重新启动完成。
  • 服务运行 :验证在服务控制小程序中没有禁用 Windows Installer 服务。启动 services.msc 并检查“Windows 安装程序”。 Some admins actually go to the lenght of disabling the service! (正如他们所说的那样)。
  • 管理员权限/UAC :验证您是否使用管理员帐户(管理员权限)运行,并且 UAC是否启用? (可能无法在服务器上禁用,我不知道)。我不怎么维护服务器,但也许尝试启动一些你知道需要提升的东西,并验证你是否收到了 UAC 提示。
  • 政策 :调查Windows Installer服务是否被策略禁用:
  • https://docs.microsoft.com/en-us/windows/win32/msi/disablemsi
  • https://docs.microsoft.com/en-us/windows/win32/msi/machine-policies

  • 终端服务器 : 如果是终端服务器机器,请确保您在安装方式而不是在 执行模式 . See this answer .
  • Change.exe:https://ss64.com/nt/change.html


  • 更多参与(陌生海岸) :
  • 不同的管理员用户 :当我遇到奇怪的问题时,我总是尝试不同的管理员帐户(debugging - 在页面下方)。只是为了排除它。有时它会起作用 - 通常是当用户配置文件以某种方式被破坏时(损坏的路径等......)。尝试以该用户身份登录并安装。
  • 恶意软件 :运行恶意软件扫描。使用恶意软件,一切皆有可能。使用您拥有的任何工具。不确定 Windows Server 有什么 - 它有 Windows Defender 脱机扫描模式吗?
  • Sfc.exe :沿着相同的路线运行 sfc.exe tool以验证系统文件未损坏。 这个工具比人们想象的更有效 . It looks like it is available on Windows Server machines .
  • sfc /verifyonly (无维修)
  • sfc /scannow (修复问题)

  • COM注册 : 你已经试过了:
  • %windir%\system32\msiexec.exe /unregister
  • %windir%\system32\msiexec.exe /regserver
  • %windir%\syswow64\msiexec.exe /unregister
  • %windir%\syswow64\msiexec.exe /regserver

  • 重新安装 Windows 安装程序 : 如果你问我,这是最后的手段。在其他一切都失败之前不要尝试。特别要确保你运行 sfc.exe 首先 - 在考虑这个黑客之前。
  • https://www.easeus.com/resource/the-windows-installer-service-could-not-be-accessed.html
  • https://docs.microsoft.com/en-us/office/troubleshoot/office/windows-installer-service-not-be-accesse

  • DISM.EXE :尝试修复 Windows 损坏问题的通用方法 - 最近还建议在最新的 1909 更新(2020 年 1 月)中修复 Windows 资源管理器搜索框中的 Windows 10 问题。
  • “使用 DISM 或系统更新准备工具修复 Windows 更新错误”:https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness ( 请访问此链接 )
  • 按顺序运行:
  • DISM.exe /Online /Cleanup-Image /CheckHealth
  • DISM.exe /Online /Cleanup-image /Restorehealth

  • 重启。

  • 关于exe - 无法访问 Windows Installer 服务。如果未正确安装 Windows Installer,则可能会发生这种情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59696619/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com