當您試圖添加或删除程式時,可能會收到以下錯誤消息:
Error 1719. The Windows Installer Service could not be accessed.You may be running in safe mode or Windows Installer may not be correctly installed.
如果存在以下情況,則可能發生此問題: 硬碟上的 Windows Installer 檔案已損壞或丢失。安裝或删除了使用 Windows Installer Mi...
如果存在以下情況,則可能發生此問題:
- 硬碟上的 Windows Installer 檔案已損壞或丢失。
- 安裝或删除了使用 Windows Installer Microsoft Software Installation (MSI) 程式封包件 (.msi) 的程式。例如,當您試圖在計算機上安裝 Microsoft Office 時可能出現此問題。
解決方案
要解決此問題,請使用下面的方法。 方法 1:重新注冊 Windows Installer要重新注冊 Windows Installer,請确認 Msiexec....
要解決此問題,請使用下面的方法。
方法 1:重新注冊 Windows Installer
要重新注冊 Windows Installer,請确認 Msiexec.exe 檔案在硬碟和 Windows 系統資料庫中的位置,然後重新注冊 Windows Installer。為此,請按照下列步驟操作:
警告:如果使用系統資料庫編輯器或其他方法錯誤地修改了系統資料庫,則可能導緻嚴重問題。這些問題可能需要重新安裝作業系統才能解決。Microsoft 不能保證您可以解決這些問題。修改系統資料庫需要您自擔風險。
注意:由于 Microsoft Windows 有多個版本,是以下列步驟可能會因您使用的計算機而有所不同。如果是這樣,請參見産品文檔來完成這些步驟。
- 确認 Msiexec.exe 檔案在硬碟上的位置。為此,請按照下列步驟操作:
- 單擊“開始”,然後單擊“搜尋”。
- 單擊“所有檔案和檔案夾”。
- 在“檔案名”框中,鍵入 msiexec.exe,然後單擊“搜尋”。
-
在搜尋結果中,記住 Msiexec.exe 檔案的位置。
Msiexec.exe 檔案的位置應類似于以下示例,其中 Drive 是安裝 Windows 的驅動器,%Windir% 是安裝 Windows 的檔案夾:
Drive:\%Windir%\System32
例如,C:\Windows\System32。
:在基于 Microsoft Windows 98 的計算機中,Msiexec.exe 檔案位于 Drive:\%Windir%\System 檔案夾下。 - 在“檔案”菜單上,單擊“關閉”。
- 确認 Msiexec.exe 檔案在 Windows 系統資料庫中的位置。為此,請按照下列步驟操作:
- 單擊“開始”,然後單擊“運作”。
- 在“打開”框中,鍵入 regedit,然後單擊“确定”。
-
找到并單擊下面的系統資料庫項:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer
- 在右窗格中,輕按兩下“ImagePath”。
-
在“編輯字元串”對話框中,確定“數值資料”框中的字元串包含 Msiexec.exe 檔案在硬碟上的正确路徑(即在上面的步驟 1 中确定的路徑)。
例如,如果 Msiexec.exe 檔案位于硬碟上 Drive:\Windows\System32 檔案夾中,則“數值資料”框中 Msiexec.exe 檔案的正确路徑如下所示,其中 Drive 是安裝 Windows 的驅動器:
Drive:\Windows\System32\Msiexec.exe /V
注意,如果使用的是 Windows 98,則 Msiexec.exe 檔案的正确路徑是 Drive:\Windows\System\Msiexec.exe /V。
如果“數值資料”框沒有包含正确的路徑,則進行适當的更改以更正此路徑,然後單擊“确定”。
- 退出系統資料庫編輯器。
- 以安全模式啟動計算機,然後注冊 Msiexec.exe 檔案。為此,請按照下列步驟操作:
- 關閉計算機,然後重新啟動計算機。
-
收到以下消息後按 F8:
請選擇要啟動的作業系統
- 在“Windows 進階選項”菜單上,使用箭頭鍵選擇“安全模式”,然後按 Enter。
- 如果使用的是雙重引導或多重引導計算機,則從顯示的清單中選擇适當的作業系統,然後按 Enter。
- 登入到計算機。
-
依次單擊“開始”、“運作”,鍵入下行内容,然後單擊“确定”:
msiexec /regserver
:對于 64 位作業系統,還需重新注冊 64 位 MSI 安裝程式。為此,請依次單擊“開始”、“運作”,鍵入下行内容,然後單擊“确定”:
Drive:\Windows\Syswow64\Msiexec /regserver
- 關閉計算機,然後以标準模式重新啟動計算機。
如果問題仍然存在,并仍收到前面的“症狀”一節所述的錯誤消息,則按方法 2 中的步驟操作:
方法 2:重新安裝 Windows Installer
要重新安裝 Windows Installer,請重命名已損壞的 Windows Installer 檔案,然後重新安裝 Windows Installer。為此,請按照下列步驟操作:
- 在“打開”框中,鍵入 cmd,然後單擊“确定”。
-
在指令提示符處,鍵入以下行,然後按 Enter,其中 Drive 是安裝 Windows 的驅動器,%Windir% 是安裝 Windows 的檔案夾:
attrib -r -s -h drive:\%Windir%\system32\dllcache
例如,鍵入
attrib -r -s -h c:\windows\system32\dllcache
:如果使用的是 Windows 98,則鍵入 system 而不是 system32。 -
在指令提示符處鍵入以下行,并在鍵入每行之後按 Enter:
ren msi.dll msi.old
ren msiexec.exe msiexec.old
ren msihnd.dll msihnd.old
- 在指令提示符處,鍵入 exit,然後按 Enter。
- 重新啟動計算機。
- 将硬碟上的 Windows Installer 檔案更新到最新版本。可以從 Microsoft 下載下傳中心下載下傳 Windows Installer 2.0。
-
對于 Windows Millennium Edition、Windows 98 Second Edition (SE) 和 Windows 98:
http://www.microsoft.com/downloads/details.aspx?familyid=cebbacd8-c094-4255-b702-de3bb768148f&displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=cebbacd8-c094-4255-b702-de3bb768148f&displaylang=en)
-
對于 Windows 2000 和 Windows NT 4.0:
http://www.microsoft.com/downloads/details.aspx?FamilyID=4b6140f9-2d36-4977-8fa1-6f8a0f5dca8f&DisplayLang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=4b6140f9-2d36-4977-8fa1-6f8a0f5dca8f&DisplayLang=en)
-
對于 Windows XP: 有關更多資訊,請單擊下面的文章編号,以檢視 Microsoft 知識庫中相應的文章:
893803 (http://support.microsoft.com/kb/893803/ ) Windows Installer 3.1 v2 (3.1.4000.2435) 現已推出
有關如何下載下傳 Microsoft 支援檔案的更多資訊,請單擊下面的文章編号,以檢視 Microsoft 知識庫中相應的文章:
119591 (http://support.microsoft.com/kb/119591/ ) 如何從聯機服務擷取 Microsoft 支援檔案
Microsoft 已對此檔案進行了病毒掃描。Microsoft 使用的是該檔案釋出時可以獲得的最新病毒檢測軟體。該檔案存儲在安全性得到增強的伺服器上,以防止在未經授權的情況下對其進行更改。
-