【发布时间】:2020-11-16 00:28:43
【问题描述】:
我有以下自定义操作,这些操作通常会从 Windows 服务中删除 exe 并将其添加回来,
<CustomAction Id="ExecRemoveService" Directory="INSTALLDIR" Execute="immediate" ExeCommand="MyExe.exe -remove" Return="ignore" />
<CustomAction Id="ExecInstallService" Directory="INSTALLDIR" Execute="immediate" ExeCommand="MyExe.exe -install" Return="ignore" />
<InstallExecuteSequence>
<Custom Action="ExecRemoveService" After="InstallFinalize" />
<Custom Action="ExecInstallService" After="InstallFinalize" />
</InstallExecuteSequence>
当运行 MSI 时没有任何反应,它成功完成,但我在 windows 服务中没有看到任何内容。
【问题讨论】:
标签: wix windows-installer custom-action