2013-11-26 91 views
1

我想卸载最近安装的服务,我在命令行中运行以下命令:卸载服务时出现问题?

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. 

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

+0

你有权利修改该计算机上的注册表相同的过程? – Adarsh

+0

是的,我有权修改注册表 – Srb1313711

+0

尝试以管理员模式运行命令提示符。 – Adarsh

回答

8

我正面临完全相同的问题。

的问题是通过打开命令提示符作为管理员解决。

0

我的猜测是,你可能试图删除使用不具有足够的权限的用户帐户的服务。具体而言,这种情况下的问题是在卸载期间删除一些EventLog注册表项。

当你登录的用户具有管理员权限还没有在“管理模式”运行命令提示符这也可能发生。解决这个问题

一种方法是确保你正在运行在管理员模式下的命令提示符。 (右键单击>以管理员身份运行)

我也遇到了一些情况下,这个方法依然未能解决抛出:SecurityException问题,由于不具有“完全控制”为管理员帐户权限一些注册表项。

下面的键应该具有“完全控制”的管理员组,以使服务能够写入到事件日志:

HKEY_LOCAL_MACHINE \系统\ CurrentControlSet \服务\事件日志 HKEY_LOCAL_MACHINE \系统\ CurrentControlSet \服务\事件日志\应用

这可以通过:

  1. 调用Windows注册表编辑器
    • 运行[WIN + R]
    • 类型
    • OK
  2. 导航路径中列出有关
  3. 右键单击所需的路径 '注册表编辑器'
  4. 确保两个完全控制权限复选框被选中为管理员
  5. 点击应用OK
  6. 重复其他路径