Studio Installation Via CMD Fails With Error 4010

Installation of Studio via command prompt fails with CustomError 4010: An error occurred when initializing UiPath ExtensionsCustom action ERROR 25001: Installation failed with error 4010 (An error occurred when initializing UiPath Extensions).

Issue Description

Upon attempting a fresh installation of UiPath Studio via the command prompt utilizing extension parameters, the process may fail when the /passive and /q parameters are combined.


The following Error messages may be encountered:

CustomError 4010: An error occurred when initializing UiPath Extensions

Custom action ERROR 25001: Installation failed with error 4010 (An error occurred when initializing UiPath Extensions) Null extensions status. Exception: System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.


Command Example leading to failure:

UiPathStudio.msi PACKAGES_FOLDER=C:\ProgramData\UiPath\Packages ADDLOCAL=CitrixClient,DesktopFeature,RegisterService,Studio,Robot,Packages,StartupLauncher,JavaBridge,EdgeExtension,JavaScriptAddOn,WindowsRdpExtension NUGET_OPTIONS=DisableOnlineFeeds ORCHESTRATOR_URL={yourOrchestratorURL} CLIENT_ID={someClientID} CLIENT_SECRET={someClientSecret} TELEMETRY_ENABLED=0 /passive /q


Root Cause

The command combines /passive and /q parameters. According to 'Studio Command Line - Parameters', "Using the /passive option of msiexec.exe to run an unattended installation is not supported."

Resolution

To resolve this issue, remove the "/passive" parameter from the command and retain only the "/q".


Conclusion:

Correct utilization of command parameters is vital for the successful installation of UiPath Studio. Errors may occur if unsupported combinations of parameters are attempted. In this case, eliminating the "/passive" parameter while preserving the "/q" will ensure a smooth installation process.