2013-11-26 90 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. 重複其他路徑