WiX 如何安装 EventSource 但使卸载部分可选
有谁知道如何使用 WiX 创建 EventSource 以便安装它,但是当卸载发生时它就变成可选的? 假设当您卸载时,它会向您显示一个对话框,要求您选择是否应将其保留在计算机上或将其删除。
我知道您可以创建自己的 .NET 自定义操作并使用该逻辑更新 InstallExecuteSequence 部分,但我想了解是否可以使用 util:EventSource 组件“本机”执行此操作。据我所知,当您在特定功能中指定组件(包含EventSource)时,它会安装和卸载。
提前致谢。
Does anyone know how to create an EventSource with WiX so that it gets installed but when the uninstall happens it becomes optional?
So let say when you uninstall, it presents you with a dialog asking you to choose whether it should remain on the computer or be removed.
I know that you can create your own .NET custom action and update the InstallExecuteSequence section with that logic but I would like to find out if you can do it "natively" with the util:EventSource component. As far as I know, it installs and uninstalls when you specify the component (containing the EventSource) in a specific feature.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,EventSource 不支持可选卸载。当您卸载产品时,MSI 会删除它知道的所有资源,包括 EventSource 创建的注册表值。卸载还会删除事件源使用的文件,所以我不确定使其成为可选的值是什么......?
No, EventSource doesn't support optional uninstall. When you uninstall a product, MSI removes all the resources it knows about, including the registry values EventSource creates. Uninstall would also remove the files the event source uses, so I'm not sure what the value is in making it optional...?