在安裝 Visual Studio 2008 Team Suite 時,安裝程式中途報錯並回滾,日誌反覆出現 HRESULT -2147023293 以及大量 DepCheck indicates ... was not attempted to be installed 訊息,涉及 Web Authoring Component、.NET Compact Framework、SQL Server Compact、Windows Mobile SDK 等元件。
安裝順序導致 VS2008 的 Web 設計工具核心元件 (WebDesignerCore) 依賴的 Office 2007 組件 (Office.zh-cn) 損毀或遺失。Office 2007 安裝後若手動刪除 MSOCache (本機安裝來源快取),會導致後續需要 Office 組件的安裝程式找不到來源檔案。
\WCU\WebDesignerCore\WebDesignerCore.EXE,執行並指定解壓縮目錄 (例如 C:\Temp\WebDesignerCore)。解壓後會包含 Office.zh-cn 資料夾。
Office.zh-cn 資料夾,完整複製覆蓋 到上一步解壓目錄中的同名資料夾。
setup.exe 安裝「Visual Studio Web 開發工具核心元件」。此步驟必須成功完成。
調整安裝順序可避免此問題:建議先裝 Visual Studio 系列 (VS2005 → VS2008),再裝 SQL Server、Office、Adobe 等。因為 VS 安裝程式會妥善處理共用元件的註冊與快取,降低後續軟體安裝破壞相依性的風險。
[01/13/10,18:55:42] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147023293.
[01/13/10,18:55:43] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Web 創作組件 is not installed.
... (大量 DepCheck 訊息) ...
若日誌出現上述特徵,大機率屬於同一根因,可依本文步驟修復。