且构网

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

WIX - 安装时的自定义操作,而不是卸载或升级时的自定义操作

更新时间:2021-09-16 20:57:03

NOT Installed AND REINSTALL 永远不会同时为真.这意味着该应用程序尚未安装,但当前正在重新安装.这将如何运作?

NOT Installed AND REINSTALL can never be true at the same time. That would mean the application is not installed but is currently being re-installed. How would that work?

改为使用此条件来安排您的自定义操作:

Schedule your custom action by using this condition instead:

未安装且未升级PRODUCTCODE

这可以防止它在重大升级时被触发.

This prevents it from being triggered on major upgrades.