wix burn ExePackage 在卸载时没有 运行

wix burn ExePackage doesnt run on uninstall

我正在尝试 运行 使用 WIX 刻录进行捆绑安装,它在安装过程中运行良好。问题是卸载 - 我想在卸载期间 运行 的 ExePackage 没有 运行。为了验证,我每次 运行 都会写入日志,在安装过程中我在日志中得到了一条新记录,但在卸载过程中却没有。包源文件是 InstallElasticSearch.exe (链中的第二个),到目前为止我没有尝试过。我试过更改 "Permanent" 属性,更改它在链中的顺序并删除 UninstallCommand。

<Chain>
  <PackageGroupRef Id="NetFx452Web"/>
  <MsiPackage Id="elasticzip" SourceFile="..\..\..\ReportsSetup\bin\Release\ReportsSetup.msi" DisplayName="Copying files"/>
  <ExePackage After="elasticzip" SourceFile="InstallElasticSearch.exe" Permanent="no" UninstallCommand="uninstall" DisplayName="Elasticsearch reporting services"/>
  <MsiPackage SourceFile="..\..\..\SetupProject3\bin\Release\EsyDeploySetup.msi" DisplayName="App and plugin" />
  <MsiPackage SourceFile="..\..\..\OvlInstaller\bin\Release\OvlInstaller.msi" DisplayName="Admin services"/>
  <ExePackage SourceFile="package3.exe" Permanent="yes" InstallCommand="[ProgramFilesFolder]" DisplayName="Add shared folder"/>
  <ExePackage SourceFile="ChangeServiceCreds.exe" Permanent="yes" DisplayName="Setting windows service credentials"/>
  <ExePackage SourceFile="package1.exe" Permanent="yes" DisplayName="Checking active sessions"/>
  <ExePackage SourceFile="package2.exe" Permanent="yes" DisplayName="Setting setup process data"/>
</Chain>

如有任何帮助,我们将不胜感激。

如果 ExePackage 元素没有 DetectCondition 属性,WIX 似乎不会 运行 卸载 ExePackage。 MsiPackage 会 运行,它只适用于 ExePackage。愚蠢的我,我怎么会错过这么明显的事情?