Why is Installing or Updating UiPath Studio in a machine giving the following error messages "Cannot detect installed version set up will now exit" and/or "An instance of UiPath Platform Installer is already running."?
Issue Description:
During the installation or update process of UiPath Studio, one of the following errors might occur:
- A popup with "Cannot detect installed version set up will now exit"
- "An instance of UiPath Platform Installer is already running."
- An error log that indicates:
"Could not find Registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{6095A623-D2D5-4DE5-852B-4****} at UiPath.StudioCAs.Extensions.RegistryToolsExtensions.GetDisplayVersionByProductCode(String productCode) at UiPath.StudioCAs.SessionManager.ValidateVersionUpgrade(String& errorMessage)"
Root cause:
This problem typically arises due to an improper removal of the previous version of UiPath Studio, which subsequently prevents the new Studio from being installed or updated.
Resolution:
There are two common solutions to this issue:
Approach 1: Changing System Registries
- Open the MSI log and search for the UiPath Product ID.
- Open the Registry Editor by typing ‘regedit.exe’ in the command prompt.
- Navigate to \HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\
- Search for the UiPath Product ID (something like "{CA94574A-9591-4278-9269-0F5FB01F***}"). This will vary across different UiPath Studio versions, so make sure to search the correct ProductID.
- Once found, expand the product folder key and go to the SourceList sub-key.
- The PackageName key could be missing or the value might not match the current MSI name (like StudioUiPath.msi).
- A new key creation and exact input of the MSI file name, like UiPathStudio.msi as the value would be required if absent.
- Restart your machine.
Important: Recommended to be handled by IT professionals. Please proceed with caution while making changes to the system registry. Backup registry because an incorrect modification can cause severe issues and any incorrect modification can lead to system instability.
Approach 2: Re-installation of old UiPath Studio version
- Install the previous version of UiPath Studio using the same EXE or MSI installer that was used before.
- After completing the installation, update the version by using the new installer (EXE/MSI).