I'm using Wix to create an.msi installation file. when I uninstall my application, it's somehow still working and I can see it in the task manager.
I've tried Deferred execution for a custom action as described in the Wix documentation: https://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html but unfortunately, it's not working with me. the command that I want to execute is "taskkill /f /im myProcess.exe"
<Property Id="myProcessKill" Value="taskkill /f /im myProcess.exe"/>
<CustomAction Id="myProcessKill" BinaryKey="WixCA" DllEntry="WixQuietExec"
Execute="deferred" Return="check" Impersonate="no"/>
<InstallExecuteSequence>
<Custom Action="myProcessKill" After="InstallValidate"/>
</InstallExecuteSequence>
this makes my msi file gives an error during the installation. and if i changed Return="check" to Return="ignore", the msi completes the installation but it doesn't kill my process upon uninstall. what's wrong with the code above? or is there any other way to kill my process upon un install? Thanks in advance