IsolateComponents作

IsolateComponents作将组件(通常是共享 DLL)的副本安装到专用位置供特定应用程序(通常是 .exe) 使用。 这会将应用程序与可能安装到计算机上的共享位置的组件的其他副本隔离开来。 有关详细信息,请参阅 独立组件

该作引用 IsolatedComponent 表的每个记录,并将Component_Shared字段中列出的组件的文件与Component_Application字段中列出的组件相关联。 安装程序将Component_Shared的文件安装到与Component_Application相同的目录中。 安装程序在此目录中生成一个文件,长度为零字节,Component_Application的密钥文件的短文件名(通常这与 .exe相同的文件名)追加到 .local。 IsolatedComponent作不会影响Component_Application的安装。 卸载Component_Application还会从目录中删除Component_Shared文件和 .local 文件。

序列限制

IsolateComponents作只能在 InstallUISequence 表InstallExecuteSequence 表中使用。 此作必须在 CostInitialize作 之后以及 CostFinalize作之前执行。

ActionData 消息

没有 ActionData 消息。

言论

如果 IsolateComponents作的条件列的计算结果为 True 或留空,安装程序将隔离 IsolatedComponent 表中列出的所有组件。 如果条件列的计算结果为 False,安装程序将忽略 IsolatedComponent 表并共享通常的组件。 RedirectedDllSupport 属性可用于条件此作。 有关详细信息,请参阅 使用序列表