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 表具有以下列。
列 | 类型 | 钥匙 | 空 |
---|---|---|---|
Component_Shared | 标识符 | Y | N |
Component_Application | 标识符 | Y | N |
列
-
Component_Shared
-
组件表的外键。 包含共享文件的组件,通常是 DLL。 DLL 应是此组件的密钥文件。 这必须与Component_Application列中列出的组件不同。
共享组件控制组件的所有独立副本的注册,并且必须在组件表的 Attributes 列中设置 msidbComponentAttributesSharedDllRefCount 标志。 这可确保安装程序可以管理共享组件的生存期。
-
Component_Application
-
组件表的外键。 包含加载共享文件的 .exe 的组件。 .exe 应该是此组件的密钥文件。 这必须与Component_Shared列中列出的组件不同。
验证