【问题标题】:Issue when uninstalling a service?卸载服务时出现问题?
【发布时间】:2013-11-26 18:08:17
【问题描述】:

我正在尝试卸载最近安装的服务,我正在命令行中运行它:

c:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil.exe /u "C:\inetpub\www
root\xxx\xxx\xxx.exe"

但我得到了这个:

The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored and the
 uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

还有这个:

Removing EventLog source xxx.
An exception occurred during the uninstallation of the System.Diagnostics.EventL
ogInstaller installer.
System.Security.SecurityException: Requested registry access is not allowed.
An exception occurred while uninstalling. This exception will be ignored and the
 uninstall will continue. However, the application might not be fully uninstalle
d after the uninstall is complete.

我不知道从哪里开始,我真的需要卸载这些,所以感谢任何帮助

【问题讨论】:

  • 您是否有权修改该机器上的注册表?
  • 是的,我有权修改注册表
  • 尝试在管理员模式下运行命令提示符。
  • 您好,我不知道为什么会这样,但是当我运行 installutil 而不是 installutil.exe 时,它​​会起作用。感谢您回答我的问题

标签: service windows-server-2012


【解决方案1】:

我遇到了完全相同的问题。

以管理员身份打开命令提示符即可解决问题。

【讨论】:

    【解决方案2】:

    我的猜测是您可能正在尝试使用没有足够权限的用户帐户删除服务。具体来说,这种情况下的问题是卸载期间删除了一些 EventLog 注册表项。

    当您以具有管理员权限的用户身份登录但未在“管理员模式”下运行命令提示符时,也可能发生这种情况。

    解决此问题的一种方法是确保您在管理员模式下运行命令提示符。 (右键 > 以管理员身份运行)

    我也遇到过一些情况,由于某些注册表项对管理员帐户没有“完全控制”权限,这种方法仍然无法解决 SecurityException 问题。

    以下键应为管理员设置“完全控制”,以便服务能够写入事件日志:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application

    这可以通过以下方式完成:

    1. 调用 Windows 注册表编辑器
      • 运行 [Win + R]
      • 键入“注册表编辑器”
      • 好的
    2. 浏览列出的路径
    3. 右键单击所需路径
    4. 确保读取完全控制权限复选框都为管理员打勾
    5. 点击应用确定
    6. 对另一条路径重复相同的过程

    【讨论】:

      猜你喜欢
      • 2013-03-20
      • 1970-01-01
      • 2011-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多