I have the following CustomAction:
<CustomAction Id="ActionName"
After="InstallFinalize">
<![CDATA[NOT Installed AND (VSTORUNTIME4="#1")]]>
</CustomAction>
The problem is that there is a case in CustomAction when I return ActionResult.Failure. In this case, the installer will display an error message and say that the installation failed, but the application is still partially installed (the files are already in the program files, and the application is displayed in the uninstall programs).
I want the return of ActionResult.Failure the installation to be aborted and deleted. This is what happens if a custom action fails when installing the default Visual Studio installer, and I think that makes more sense.
Does anyone know how to invoke uninstall if a custom action fails? Do I need to add something extra to WiX XML?
source
share