It appears that Cubase uses the “_name” field of the PClassInfo2 constructor to identify and load a plug-in from a session, rather than its TUID ("_cid").
We want to change the name of our plug-in, but have it replace the old plug-in when loading a session. I tried keeping the TUID the same, and only changing the name, but it fails to find the plug-in then.
If I keep the old name, then it shows up as expected, but the name is no longer correct in the Inserts menu. We need it to show the new name in any user interface elements (such as the Inserts list), but replace the old version completely (which has been removed by our installer).
How can we do that? We really can’t have the old name for the new version.