文章編號: 907749 - 上次校閱: 2007年1月11日 - 版次: 1.4

Windows 「 安裝程式的基本疑難排解步驟

系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。

在此頁中

全部展開 | 全部摺疊

結論

這份文件包含的概觀,Microsoft Windows 安裝程式以及如何對 Windows 「 安裝程式安裝可能會發生的問題進行疑難排解
您可以使用 Microsoft Windows 安裝程式來安裝並設定安裝封裝。安裝套件包含 Windows 安裝程式需要安裝或移除應用程式或產品並執行安裝程式使用者介面的所有資訊。每個安裝套件包括含有安裝資料庫、 摘要資訊資料流和安裝的各個部分的資料流的.msi 檔案。.msi 檔案時,也可以包含一或多個轉換、 內部的來源檔案和外部的來源檔案或安裝所需的封包檔。

下列是可用的版本的 Windows 安裝程式的摘要:
  • Windows Installer 3.1: Windows Installer 3.1 包含在 Microsoft Windows Server 2003 Service Pack 1 (SP1)。也為 Windows 2000 SP3、 Windows 2000 SP4、 Windows XP,Windows XP SP1,Windows XP SP2 和 Windows Server 2003 的可轉散發套件的系統元件使用 Windows Installer 3.1。如需有關 Windows Installer 3.1 的詳細資訊,請造訪下列 Microsoft 網站]:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=889482fc-5f56-4a38-b838-de776fd4138c (http://www.microsoft.com/downloads/details.aspx?FamilyID=889482fc-5f56-4a38-b838-de776fd4138c)
    若要安裝 Windows Installer 3.1 為重要的更新,請造訪下列 Microsoft 網站]:
    http://windowsupdate.microsoft.com (http://windowsupdate.microsoft.com)
  • Windows Installer 3.0: Windows Installer 3.0 已包含在 Windows XP SP2。也為 Windows 2000 SP3]、 [Windows 2000 SP4]、 [Windows XP]、 [Windows XP SP1] 和 [Windows Server 2003 的可轉散發套件的系統元件使用 Windows Installer 3.0。如需有關 Windows Installer 3.0,請造訪下列 Microsoft Web 網站:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=5fbc5470-b259-4733-a914-a956122e08e8 (http://www.microsoft.com/downloads/details.aspx?FamilyID=5fbc5470-b259-4733-a914-a956122e08e8)
  • Windows Installer 2.0: Windows Installer 2.0 包含在 Windows Server 2003、 Windows XP 和 Windows 2000 SP3。為兩個套件使用 Windows Installer 2.0。一個套件用來安裝或升級到 Windows 安裝程式 2.0 Windows 千禧版、 Windows 98 和 Windows 95 上。其他封裝用來安裝或升級到 Windows 2000 和 Windows NT 4.0 SP6 Windows Installer 2.0。如需更多有關資訊 Windows Installer 2.0 Windows 千禧版、 Windows 98 和 Windows 95,請造訪下列 Microsoft 網站:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=cebbacd8-c094-4255-b702-de3bb768148f (http://www.microsoft.com/downloads/details.aspx?FamilyID=cebbacd8-c094-4255-b702-de3bb768148f)
    如需有關 Windows 2000 和 Windows NT 4.0 的 Windows 安裝程式 2.0 的詳細資訊,請造訪下列 Microsoft 網站]:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=4b6140f9-2d36-4977-8fa1-6f8a0f5dca8f (http://www.microsoft.com/downloads/details.aspx?FamilyID=4b6140f9-2d36-4977-8fa1-6f8a0f5dca8f)
    附註若要安裝或升級 Windows Installer 2.0 在 Windows Server 2003 或在 Windows XP 中,請勿使用這些套件。
  • Windows Installer 1.2: Windows Installer 1.2 包含在 Windows 千禧版。Windows Installer 1.2 也支援 Windows 95、 Windows 98 和 Windows NT 4.0 SP3 或較新版本的 Windows NT 4.0 上。
  • Windows Installer 1.1: Windows Installer 1.1 會包含在 Windows 2000。為可轉散發套件的系統元件的 Windows 95、 Windows 98 和 Windows NT 4.0 SP3 或較新版本的 Windows NT 4.0 使用 Windows Installer 1.1。如需更多有關資訊 Windows Installer 1.1 Windows 95 和 Windows 98,請造訪下列 Microsoft 網站:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=f1b7a5b0-611b-45a7-a06d-cadff33e64da (http://www.microsoft.com/downloads/details.aspx?FamilyID=f1b7a5b0-611b-45a7-a06d-cadff33e64da)
    如需更多有關資訊 Windows Installer 1.1 Windows NT 4.0,請造訪下列 Microsoft 網站:
    http://www.microsoft.com/downloads/details.aspx?familyid=F8CA7781-41DC-4A53-A574-82EB9CD85BBB (http://www.microsoft.com/downloads/details.aspx?familyid=F8CA7781-41DC-4A53-A574-82EB9CD85BBB)
  • Windows Installer 1.0: Windows Installer 1.0 已內附於 Microsoft Office 2000。 在 Windows 95、 Windows 98 和 Windows NT 4.0 SP3 或較新版本的 Windows NT 4.0 上也可以支援 Windows Installer 1.1。
如果要判斷哪個版本的 Windows 安裝程式已安裝在電腦上,請依照下列步驟執行:
  1. 按一下 [開始]、 按一下 [執行]、 輸入 %systemroot%\system32,然後按一下 [確定]]。
  2. Msi.dll,] 上按一下滑鼠右鍵,然後按一下 [內容]。
  3. 按一下 [版本] 索引標籤,然後記下 檔案版本 號碼。

其他相關資訊

重要這個區段、 方法或任務包含告訴您如何修改登錄的步驟。然而,如果您不當修改登錄,可能會發生嚴重的問題。因此,執行這些步驟時請務必小心。為加強保護,修改登錄之前,請務必將它備份起來。以後您就可以在發生問題時還原登錄。如需有關如何備份和還原登錄的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
322756? (http://support.microsoft.com/kb/322756/ ) 如何備份和還原在 Windows 登錄


重要您可以使用下列資訊來疑難排解 Windows 「 安裝程式之前,我們建議您先嘗試在下列微軟知識庫文件中的方法:
319624? (http://support.microsoft.com/kb/319624/ ) 安裝應用程式時,"無法存取 Windows 安裝程式服務 」 的錯誤訊息


如果要疑難排解當您使用 Windows 「 安裝程式來安裝程式時,可能會發生的問題,使用下列方法。

方法 1: 重新登錄 Windows 「 安裝程式

如果要重新登錄 Windows 「 安裝程式,請依照下列步驟執行。

附註因為個幾個版本的 Microsoft Windows 下列步驟可能會在您的電腦上不同。如果他們是請參閱您的產品說明文件,以完成這些步驟。
  1. 請確認硬碟上 Msiexec.exe 檔案的位置。要這麼做,請您執行下列步驟:
    1. 按一下 [開始],指向 [搜尋],然後再按一下 [檔案或資料夾
    2. 按一下 [所有檔案和資料夾]。
    3. 部份或完整檔案名稱 方塊中輸入 Msiexec.exe,然後再按一下 [搜尋]
    4. 在 [搜尋] 結果記下找出 Msiexec.exe 檔案的位置]。

      找出 Msiexec.exe 檔案的檔案位置應該類似 C:\Windows\System32。

      附註在 Windows 98 的電腦上找出 Msiexec.exe 檔案位於 %Windir%\System 資料夾中。
    5. 在 [檔案] 功能表上, 按一下 [關閉]。
  2. 請確認在 [Windows 找出 Msiexec.exe 檔案的位置登錄。要這麼做,請您執行下列步驟:
    1. 按一下 [開始],再按一下 [執行]、 輸入 Regedit,] 然後再按一下 [確定]
    2. 找出並按一下下列登錄機碼:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer
    3. 在右窗格中, 連按兩下 ImagePath]。
    4. 在 [編輯字串] 對話方塊請確定 數值資料] 方塊中的字串包含您在步驟 1 中找到的硬碟上 Msiexec.exe 檔案之正確路徑。

      範例如果 Msiexec.exe 檔案位於的 Drive: 硬碟磁碟在 [數值資料] 方塊中將找出 Msiexec.exe 檔案之正確路徑上的 \Windows\System32 資料夾是 Drive: \Windows\System32\Msiexec.exe/V。本範例在 Drive 是磁碟機安裝 Windows。

      附註在 Windows 98 電腦上找出 Msiexec.exe 檔案之正確的路徑是 Drive: \Windows\System\Msiexec.exe/V。

      附註/ V 參數啟用詳細資訊記錄。
    5. 如果 數值資料] 方塊中包含的正確路徑,做適當的變更,若要更正該路徑,再按 [確定]
    6. 結束 「 登錄編輯程式 」。
  3. 在 「 安全模式啟動電腦並再登錄找出 Msiexec.exe 檔案。要這麼做,請您執行下列步驟:
    1. 重新啟動電腦。
    2. 您會收到下列訊息之後,請按下 F8:
      請選擇您想要啟動的作業系統
    3. 在 [Windows 進階選項] 功能表上使用方向鍵來選取 「 安全模式,並按下 ENTER。
    4. 如果使用雙重開機的電腦或多重開機電腦從所顯示的清單中選取適當的作業系統,並按下 ENTER。
    5. 登入電腦。
    6. 按一下 [開始]、 按一下 [執行]、 輸入 Msiexec /regserver,然後按一下 [確定]]。
  4. 在標準模式下,重新啟動電腦。
如果問題無法解決,依照方法 2。

方法 2: 重新安裝 Windows 「 安裝程式

若要重新安裝 Windows 「 安裝程式,請依照下列步驟執行:
  1. 在 「 安全模式 」 下啟動電腦。要這麼做,請您執行下列步驟:
    1. 重新啟動電腦。
    2. 您會收到下列訊息之後,請按下 F8:
      請選擇您想要啟動的作業系統
    3. 在 [Windows 進階選項] 功能表上使用方向鍵來選取 「 安全模式,並按下 ENTER。
    4. 如果使用雙重開機的電腦或多重開機電腦從所顯示的清單中選取適當的作業系統,並按下 ENTER。
    5. 登入電腦。
  2. 按一下 [開始],再按一下 [執行]、 輸入 cmd,] 然後再按一下 [確定]
  3. 在的命令提示字元輸入 [attrib-r-s-h %Windir%\System32\dllcache]。

    附註在 Windows 98 電腦上輸入 [System32 代替 系統]。

    附註在 Windows Server 2003 SP1 型電腦上略過此步驟。而是,跳到步驟 4。
  4. 在命令提示字元下鍵入 CD %Windir%\System32,並按下 ENTER。
  5. 在命令提示字元下輸入下列行,在每命令行後按下 ENTER 鍵:
    ren msi.dll msi.old
    ren msiexec.exe msiexec.old
    ren msihnd.dll msihnd.old
  6. 在命令提示字元下鍵入 結束,並按下 ENTER。
  7. 在 「 安全模式 」 中,重新啟動電腦。
  8. 更新最新版本在硬碟上的 [Windows 安裝程式檔案。

    附註基於 Windows Server 2003 SP1 的電腦上 Windows Installer 3.1 可轉散發套件中的將檔案解壓縮,然後再將下列檔案複製到 %Windir%\System 32 到電腦上資料夾:
    • Msi.dll
    • 找出 Msiexec.exe
    • Msihnd.dll
  9. 在標準模式下,重新啟動電腦。

?考

如需有關 Windows Installer 3.1 v2,按一下下面的文件編號,檢視 「 Microsoft 知識庫 」 中的發行項:
893803? (http://support.microsoft.com/kb/893803/ ) Windows Installer 3.1 v2 (3.1.4000.2435) 可用
如需有關 Windows 「 安裝程式的詳細技術,按一下下面的文件編號,檢視 「 Microsoft 知識庫 」 中的發行項:
310598? (http://support.microsoft.com/kb/310598/ ) Windows 「 安裝程式技術的概觀
如需有關如何使用 Windows Installer CleanUp 按一下下面的文件編號,檢視 「 Microsoft 知識庫 」 中的發行項在下列文件疑難排解安裝問題的公用程式:
290301? (http://support.microsoft.com/kb/290301/ ) Windows 安裝程式清理公用程式的說明


如需有關 Windows 「 安裝程式錯誤訊息的詳細資訊,請造訪下列 Microsoft 開發 o 人 h 員 ? 工 u 具 ? 網路 (MSDN) 網站]:
http://msdn2.microsoft.com/en-us/library/aa372835.aspx (http://msdn2.microsoft.com/en-us/library/aa372835.aspx)

這篇文章中的資訊適用於:
  • Microsoft Windows Installer 3.1?應用於:
    • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
    • Microsoft Windows Server 2003, Web Edition
    • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
    • Microsoft Windows XP Professional
    • Microsoft Windows XP Home Edition (家用版)
    • Microsoft Windows 2000 Service Pack 3
    • Microsoft Windows 2000 Service Pack 3
    • Microsoft Windows 2000 Server SP4
    • Microsoft Windows 2000 Professional SP4
  • Microsoft Windows Installer 3.0?應用於:
    • Microsoft Windows Server 2003, Web Edition
    • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
    • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
    • Microsoft Windows XP Professional
    • Microsoft Windows XP Home Edition (家用版)
    • Microsoft Windows 2000 Professional SP4
    • Microsoft Windows 2000 Server SP4
    • Microsoft Windows 2000 Service Pack 3
    • Microsoft Windows 2000 Service Pack 3
  • Microsoft Windows Installer 2.0?應用於:
    • Microsoft Windows 2000 Server
    • Microsoft Windows 2000 Professional Edition
    • Microsoft Windows NT 4.0 Service Pack 6
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 95
  • Microsoft Windows Installer 1.2?應用於:
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 95
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT 4.0 Service Pack 3
    • Microsoft Windows NT 4.0 Service Pack 4
    • Microsoft Windows NT 4.0 Service Pack 5
    • Microsoft Windows NT 4.0 Service Pack 6
  • Microsoft Windows Installer 1.1?應用於:
    • Microsoft Windows 2000 Server
    • Microsoft Windows 2000 Professional Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 95
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT 4.0 Service Pack 3
    • Microsoft Windows NT 4.0 Service Pack 4
    • Microsoft Windows NT 4.0 Service Pack 5
    • Microsoft Windows NT 4.0 Service Pack 6
  • Microsoft Windows Installer 1.0?應用於:
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 95
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT Workstation 4.0
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows NT 4.0 Service Pack 3
    • Microsoft Windows NT 4.0 Service Pack 4
    • Microsoft Windows NT 4.0 Service Pack 5
    • Microsoft Windows NT 4.0 Service Pack 6
關鍵字:?
kbmt kbtshoot kbinfo kbhowto KB907749 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:907749? (http://support.microsoft.com/kb/907749/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。