Failure to install the scitegic/chemistry package when upgrading Pipeline Pilot

Description

In some cases, the Pipeline Pilot installer fails to install the scitegic/chemistry package as well as several other packages that has dependencies on this. The error messages are like:

There were errors registering the following components:

File: C:\\Program Files\\BIOVIA\\PPS\\apps\\scitegic\\chemistry\\xml\\Protocols\\Web Services\\BIOVIA\\BIOVIA Draw\\Calculators\\Aqueous Solubility (Draw).xml
ERROR: "Aqueous Solubility (Draw)" is already registered with the system GUID "{70B03092-2E70-460D-B07C-BE2FFE08FFA0}" as component "Protocols/Web Services/BIOVIA Draw Protocols/Calculators/Aqueous Solubility"
… more similar lines for each protocol …

Solution

Starting with PPChem 2021, the Draw protocols are shipped with the chemistry collection and no longer with the Draw installer. If the Pipeline Pilot instance to be upgraded already had the Draw protocols installed from the Draw installer, there will be a conflict between the protocols coming from the new Pipeline Pilot installer and the existing protocols coming from the older Draw installer.

The solution is to login using the Pipeline Pilot Pro Client and delete the "Protocols/Web Services/BIOVIA/BIOVIA Draw" folder. These are the protocols that was installed from the older Draw installer.

Once the old protocols have been removed, it should be possible to use pkgutil to re-register the scitegic/chemistry package as well as the other failed packages like:

pkgutil -r scitegic/chemistry