且构网

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

如何在仅在安装或卸载时执行的WiX中执行自定义操作?

更新时间:2022-06-02 00:50:53

尝试下一个

1。仅用于安装:

Try next
1. Only for Installation:

<InstallExecuteSequence>
<Custom Action="SomeAction" After="InstallFinalize">NOT Installed AND NOT REMOVE</Custom>
</InstallExecuteSequence>

2。要卸载,请尝试使用: Rob的答案

2. For Uninstall try to use: Rob's answer

UPGRADINGPRODUCTCODE 属性仅在期间设置RemoveExistingProducts CA。