Error Message "Installation Error" Occurs When Upgrading UiPath Studio From Version 2017 To 2021.4

How to resolve the error message "Installation Error" that occurs when upgrading UiPath Studio from version 2017 to 2021.4 ?

Issue Description: When upgrading UiPath Studio from version 2017 to 2021.4, below error message appears

Resolution: Upgrade Studio to 2019.4.6 first, then upgrade to Studio 2021.4.