Unreal Engine 4.22 Error. Installation unsuccessful file corrupt.

So I was trying to update my unreal from 4.15 to 4.22. Firstly. I deleted the old version. Secondly I selected the newest one and tried to install it. Problem here, however is that I got this error and am unable to complete the installation. Any ideas on how to fix?

Is the deleted version still in your Windows Recycle Bin? If so restore it. Then try to upgrade to an older version first, ie. like 4.18. Also try to upgrade from version to version 4.15 to 4.16, to 4.17 and so on.