PROBLEM:
Kaseya upgrade/update fails with the below error
Error: Failed to set the Kaseya settings for the Microsoft Internet Information Services in OnEnd()
CAUSE:
Most likely it is because the IIS on the server is corrupted or is not functioning properly.
RESOLUTION:
Follow the below steps to resolve the error:
1) Try and see if any of the solutions suggested in the below Microsoft support article helps
2) Run the kinstall.exe to see if there are any exceptions like the below one. If yes, please run the fix it.
3) If that doesn't help uninstall the strip headers from the server manually by going to add/remove programs and install it again from the below link:
https://github.com/Dionach/StripHeaders/releases/download/v1.0.5/iis_stripheaders_module_1.0.5.msi
4) If none of the above help, uninstall the IIS completely and reboot the server.
Reinstall it by following the below help file.
http://help.kaseya.com/webhelp/EN/VSA/9050000/Install/#10453.htm
Reboot the server and attempt the reinstall to see if the issue is resolved.