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
There are many problems with the way you seem to have set up things:
The RemoveFile table (Wix equivalent) will allow you to remove files during installation, uninstallation or both. You should not remove files that are part of an associated Windows Installer component, as self-repair may put them back.
I believe, that what you need is:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With