移除隔離元件

當套件包含隔離元件時,Windows Installer 會在移除應用程式期間執行下列動作。 一般而言,Component_Shared是由Component_Application和其他用戶端可執行檔共用的 DLL。

解除安裝

  • 只有在同時移除Component_Application時,才從包含Component_Application的資料夾中移除Component_Shared的檔案。
  • 如果在 Component 資料表 中設定 msidbComponentAttributesSharedDllRefCount 位,則會遞減 SharedDLL refcount。
  • 移除 。包含Component_Application資料夾的 LOCAL 零位元組檔案。
  • 從Component_Shared的用戶端清單中移除Component_Application。
  • 一般移除Component_Application的所有資源。

如果用戶端清單中還有其他產品,Component_Shared:

  • 從Component_Shared的共用位置移除任何檔案。

如果遞減之後,Component_Shared的 SharedDLL refcount 為 0,或沒有其他剩餘的用戶端Component_Shared:

  • 從共用位置移除Component_Shared的檔案。
  • 處理與此元件相關的所有卸載動作。