仅在安装时自定义操作

edd*_*yuk 3 wix wix3.5

我已将自定义操作设置为仅在安装时触发

<InstallExecuteSequence>
   <Custom Action="caPopulateDatabase" Before="InstallFiles">NOT INSTALLED AND NOT UPGRADINGPRODUCTCODE</Custom>
</InstallExecuteSequence>
Run Code Online (Sandbox Code Playgroud)

出于某种原因,在卸载期间触发了自定义操作.

我究竟做错了什么?

Rob*_*ing 7

请尝试以下安装:

<InstallExecuteSequence>
   <Custom Action="caPopulateDatabase" Before="InstallFiles">NOT Installed</Custom>
</InstallExecuteSequence>
Run Code Online (Sandbox Code Playgroud)

Windows Installer区分大小写.此外,根据您的问题,您不需要在主要升级期间被删除时阻止,所以我删除了NOT UPGRADINGPRODUCTCODE.