Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在主要升级之前向用户显示他是否真的想升级新安装程序的弹出消息。
我尝试使用 MajorUpgrade 元素,只能降级自定义操作而不是重大升级。
如果您正在使用该MajorUpgrade元素,WIX_UPGRADE_DETECTED则将在执行升级时定义一个属性。然后,您可以根据该属性在 UI 中定义新的对话框或弹出窗口。您需要修改Publish要放置 UI 的元素,如下所示:
MajorUpgrade
WIX_UPGRADE_DETECTED
Publish
<Publish Event='ShowMajorUpgradeDialog'>WIX_UPGRADE_DETECTED</Publish>