Additionally, clear the MSI cache:
Disclaimer: Always backup your system and data before modifying drivers or security settings.
Error 27300 when installing a Kaspersky application for home
If the installation files were downloaded incompletely or extracted to a temporary folder that was cleared, the klif.sys file might be corrupted or digitally unsigned, causing Windows to block the installation.