Error Upgrading UiPath Studio/ Robot

What to do when the installer fails with an "ERROR_INSTALL_FAILURE", "Error 1303. The installer has insufficient privileges to access this directory: C:\Program Files\UiPath\Studio\{folder_name}. The installation cannot continue. Log on as administrator or contact your system administrator."?

Description:

During the upgradation if any error occurs then always check the upgrade logs provided in the error pop-up. This log will give more idea on why installer threw error.

Most common issue issue is the restrictive administrative rights and user account does not have access to modify the registry or configuration changes.

A sample scenario below for reference:
Using an Admin account, running a test upgrade on a Robot from current version 21.4.5 to 2021.10.5 using the installer downloaded from UiPath cloud. After removing old files and registering new files, the installer throws a error similar to:

MSI (s) (C4:64) [15:08:22:745]: Note: 1: 1303 2: C:\Program Files\UiPath\Studio\ru

MSI (c) (78:0C) [15:08:22:745]: EEUI - Invalid return value 1 for message type 16777221.

MSI (c) (78:0C) [15:08:22:745]: EEUI - Embedded UI Handler returned ERROR_INSTALL_FAILURE

Error 1303. The installer has insufficient privileges to access this directory: C:\Program Files\UiPath\Studio\ru. The installation cannot continue. Log on as administrator or contact your system administrator.

MSI (s) (C4:64) [15:08:22:746]: Product: UiPath Studio -- Error 1303. The installer has insufficient privileges to access this directory: C:\Program Files\UiPath\Studio\ru. The installation cannot continue. Log on as administrator or contact your system administrator.

Action ended 15:08:22: InstallFinalize. Return value 3.

When attempting to "Allow Full control" of the folder through the Explorer properties, a system error message is returned, ""Error Applying Security".



Root Cause: The issue appears to be the result of installed security software and not amenable to change by the UiPath installer.



Resolution: It is recommended to temporarily turn off any installed security software, it may be possible to complete the upgrade. Beyond that, engage the IT security team to identify potential policies preventing the folder from being changed.