During installation i need some extra files in Custom Actions that are configured in the InstallExecuteSequence tag asl After="InstallFinalize".
After the usage of the files, i want the files (and the directory) to be removed.
How can i do this?
My InstallExecuteSequence lookst like this:
<InstallExecuteSequence>
<Custom Action="UNINSTALLSERVICE"
After="InstallInitialize">REMOVE="ALL"</Custom>
<Custom Action="CLEANUP"
Before="RemoveFiles">REMOVE="ALL"</Custom>
<Custom Action="INSTALLSERVICE"
After="InstallFinalize" />
</InstallExecuteSequence>
If i create a custom action with
ExeCommand="cmd /C RD "somedir" /s /q"
and add it to the sequence like this:
<Custom Action="CLEANTEMP" After="InstallFinalize" />
I get a build-error:
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