在安装过程中,我需要一些额外的文件来进行自定义操作,这些操作被配置在InstallExecuteSequence标签中的After="InstallFinalize"之后。
在使用这些文件之后,我想要删除这些文件(以及目录)。
我该如何做到这一点?
我的InstallExecuteSequence看起来像这样:
<InstallExecuteSequence>
<Custom Action="UNINSTALLSERVICE"
After="InstallInitialize">REMOVE="ALL"</Custom>
<Custom Action="CLEANUP"
Before="RemoveFiles">REMOVE="ALL"</Custom>
<Custom Action="INSTALLSERVICE"
After="InstallFinalize" />
</InstallExecuteSequence>
如果我使用“自定义操作”创建一个操作
ExeCommand="cmd /C RD "somedir" /s /q"
将其添加到序列中,如下所示:
<Custom Action="CLEANTEMP" After="InstallFinalize" />
我遇到了一个构建错误:
Error 596 ICE77: CLEANCONFIG is a in-script custom action.
It must be sequenced in between the InstallInitialize action
and the InstallFinalize action in the InstallExecuteSequence table