WiX - 如何防止 ComPlusAssembly 在卸载过程中被取消注册?
作为安装程序的一部分,我将文件添加到现有的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 Component/@Permanent 设置为“yes”。
Make the Component/@Permanent="yes".