重新安裝隔離的元件
當套件包含隔離元件時,Windows Installer 會在重新安裝應用程式期間執行下列動作。 一般而言,Component_Shared是由Component_Application和其他用戶端可執行文件共用的 DLL。
重新安裝
- 只有在重新安裝Component_Application時,才能將Component_Shared的檔案重新安裝到與Component_Application相同的資料夾中。
- 請勿遞增Component_Shared的用戶端清單,也不會遞增 SharedDLL 計數。
- 使用Component_Application金鑰檔的簡短檔名重新建立零位元組檔案。 此檔案必須位於與 Component_Application 相同的資料夾中,且擴展名為 。當地。
- 如往常重新安裝Component_Application的所有資源。
如果 Component_Shared 的 SharedDLL refcount 超過 1,或者其他產品仍保留在用戶端清單Component_Shared:
- 將檔案重新安裝至Component_Shared的共用位置。
如果 Component_Shared 的 SharedDLL refcount 等於 1,或沒有任何其他剩餘的用戶端Component_Shared:
- 使用 檔案版本設定規則,將 Component_Shared 的檔案重新安裝至共用位置。
- 處理所有重新安裝Component_Shared動作。
- 如果Component_Shared是 COM 元件,請登錄完整的 COM 路徑,讓安裝程式語法 [$Component] 和 [#FileKey] 指向Component_Shared的共用位置。