拿掉隔離的元件
當套件包含隔離元件時,Windows Installer 會在移除應用程式期間執行下列動作。 一般而言,Component_Shared是由Component_Application和其他用戶端可執行文件共用的 DLL。
卸載
- 只有在移除Component_Application時,才從包含Component_Application的資料夾移除Component_Shared的檔案。
- 如果在 Component 數據表中設定 msidbComponentAttributesSharedDllRefCount 位, 遞減 SharedDLL refcount。
- 移除 。包含Component_Application之資料夾的本機零位元組檔案。
- 從Component_Shared的用戶端清單中移除Component_Application。
- 如往常移除Component_Application的所有資源。
如果用戶端清單中還有其他產品Component_Shared:
- 從Component_Shared的共用位置移除任何檔案。
如果 Component_Shared 的 SharedDLL refcount 在遞減後為 0,或沒有其他剩餘的用戶端Component_Shared:
- 從共用位置移除Component_Shared的檔案。
- 處理此元件的所有卸載動作。