2

I am creating an MSI installer using WiX. I have several .ocx and .dll files that must be registered on the end user's computer. Does including these files in the installation automatically register them as if the regsvr32 command had been run?

4

1 回答 1

3

不,目录、组件和文件元素仅表示将文件复制到文件夹。COM 由诸如 ProgId、Class、TypeLib 和 AppId 表等 COM 元素表示。

如果您知道此信息,则可以手动创作。如果不这样做,您可以使用实用程序 Heat 来收获它。Heat 模拟注册并将其提取/转换为 WXS 代码。

使用 Regsvr32 调用 DllRegister 服务器(或 Gacutil 调用 COMVisible 程序集或类似的)在 Windows Installer 世界中被视为反模式。这是因为它是脆弱的并且不在进程中,不是声明性的,并且不能回滚或监控弹性。

收获工具(加热)

于 2013-06-26T23:25:22.350 回答