The source of the problem is the installer that was loaded by the installation task that failed. And the uninstallation task only checks if the component is installed. If the component is not installed but the installer loaded, the uninstallation does nothing.
In my mind and because of symmetry in relation to the installation, the uninstallation task should manages the use case where the component is not installed and the installer loaded, to unload the installer.
The source of the problem is the installer that was loaded by the installation task that failed. And the uninstallation task only checks if the component is installed. If the component is not installed but the installer loaded, the uninstallation does nothing.
In my mind and because of symmetry in relation to the installation, the uninstallation task should manages the use case where the component is not installed and the installer loaded, to unload the installer.