自定义操作失败时取消卸载wix

自定义操作失败时取消卸载wix,wix,custom-action,Wix,Custom Action,当自定义操作失败时,我需要取消卸载。然而,我无法取消卸载,我可以知道我的错误是什么吗 <CustomAction Id="SetRemoveSettings" FileKey="RemoveSettings.exe" ExeCommand="" Execute="deferred" Return="check" HideTarget="no" Impersonate="yes" /> <InstallExecuteSequence> <Custom Actio

当自定义操作失败时,我需要取消卸载。然而,我无法取消卸载,我可以知道我的错误是什么吗

<CustomAction Id="SetRemoveSettings" FileKey="RemoveSettings.exe"  ExeCommand="" Execute="deferred" Return="check" HideTarget="no" Impersonate="yes" />
<InstallExecuteSequence>
  <Custom Action='SetRemoveSettings' Before='InstallFinalize'>REMOVE="ALL"</Custom>
</InstallExecuteSequence>

REMOVE=“全部”

如果EXE返回非零退出代码,则应回滚卸载

此外,您还应该查看模式。对于那些必须调用EXE的时候,调用EXE是一种更好的方法。否则,一般避免使用EXE