I have an installation created by wix which installs a couple of services. The services are installed by a custom action and not by the WIX for a couple of reason that can cannot be changed. Installation works fine unless I upgrade and then I receive the FilesInUse dialog. I'd like to handle the file in use myself in a custom action.
Is there any way I can run a custom action before the InstallValidate or disable the FilesInUse dialog? I'm using a generic WIX UI.
I've tried adding it to the InstallUIsequence, to the InstallExecutionSequence (before the InstallValidate) and disabling the restart manager control. Nothing worked.. (maybe I added it wrong in one of the sequences)
My custom action:
<CustomAction Id="StopServices"
BinaryKey="CustomActionsDLL"
DllEntry="StopServices"
Execute="immediate"
Return="check"/>
Any suggestions?