IsolatedComponent 資料表

IsolatedComponent 資料表的每個記錄都會關聯Component_Application資料行中指定的元件, (通常是.exe) 與Component_Shared資料行中指定的元件, (共用 DLL) 。 IsolateComponents 巨集指令會將Component_Shared複本安裝到私人位置,以供Component_Application使用。 這會隔離Component_Application與其他可能安裝在電腦上的共用位置Component_Shared複本。 請參閱 隔離元件

若要將一個Component_Shared連結至多個Component_Application,請在 IsolatedComponents 資料表中包含每個配對的個別記錄。 安裝程式會將Component_Shared的檔案複製到所安裝之每個Component_Application的目錄中。

IsolatedComponent 資料表具有下列資料行。

資料行 類型 答案 Nullable
Component_Shared 識別碼 Y N
Component_Application 識別碼 Y N

 

資料行

Component_Shared

元件資料表中的外鍵。 包含共用檔案的元件,通常是 DLL。 DLL 應該是此元件的金鑰檔。 這必須與Component_Application資料行中所列的元件不同。

共用元件會控制元件所有隔離複本的註冊,而且必須在 Component 資料表的 Attributes 資料行中設定 msidbComponentAttributesSharedDllRefCount 旗標。 這可確保安裝程式可以管理共用元件的存留期。

Component_Application

元件資料表中的外鍵。 包含載入共用檔案之.exe的元件。 .exe應該是此元件的關鍵檔案。 這必須與Component_Shared資料行中所列的元件不同。

驗證

ICE03
ICE06
ICE32
ICE62
ICE66
ICE97