WiX - 如何防止 ComPlusAssembly 在卸载过程中被取消注册?

发布于 2024-08-29 00:09:26 字数 367 浏览 2 评论 0原文

作为安装程序的一部分,我将文件添加到现有的 COM+ 包中。我在我的 Product 元素下定义了一个 ComPlusApplication,它的名称设置为一个属性 - 然后我有一个自定义操作来查找该属性 - 到目前为止一切都很好。

当安装程序添加文件时,在同一组件中,我添加了一个 ComPlusAssembly,它将程序集添加到我上面定义的 ComPlusApplication 中 - 这也可以正常工作。

但是,卸载后,我收到与无法找到 COM+ 应用程序相关的错误,这是因为我没有运行自定义操作来查找 COM+ 包的名称。基本上我不想在卸载过程中删除我的文件或取消注册组件包 - 如何实现这一点?

我在 VS2008 中使用 WiX 3.0。

谢谢

As part of my Installer, I am adding files to an existing COM+ package. I have defined a ComPlusApplication underneath my Product element, which has the name set to a property - I then have a custom action which looks up that property - all good so far.

When the installer adds the files, within the same component I have added a ComPlusAssembly which adds the assembly to the ComPlusApplication I defined above - this is also working correctly.

When uninstalled however, I am receiving an error related to being unable to find the COM+ application, this is because I am not running my custom action to look up the name of the COM+ package. Basically I do not want to remove my files or unregister the component package as part of the uninstallation process - How do I achieve this?

I am using WiX 3.0 with VS2008.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甲如呢乙后呢 2024-09-05 00:09:26

将 Component/@Permanent 设置为“yes”。

Make the Component/@Permanent="yes".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文