且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在自定义操作中使用VS Installer类

更新时间:2022-06-02 00:49:59

简单的答案是不要使用VS Installer类。它们具有许多基本的设计缺陷。建议您改用Windows Installer XML(WiX)部署工具基金会(DTF)。 DTF是托管代码的高级托管模型/互操作库,并输出与C / C ++自定义操作兼容的DLL(从MSI角度来看)。任何MSI创作工具都可以将它们作为定制操作使用,而不仅仅是WiX安装程序。

The simple answer is don't use VS Installer Classes. They have a number of fundamental design flaws. I suggest you look at Windows Installer XML's ( WiX ) Deployment Tools Foundation ( DTF ) instead. DTF is a far superior hosting model / interop library for your managed code and outputs DLL's that are compatible ( from an MSI perspective ) with C/C++ custom actions. They can be consumed as Custom Actions by any MSI authoring tool, not just WiX installers.

部署工具基金会加入了WiX工具集。

部署工具基金会(DTF)托管自定义操作