重新安裝隔離元件

當套件包含隔離元件時,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的共用位置。