[Solved] How to set unique ID of VST3 plugin dynamically?

you can write your own DEF_CLASS implementation (do not use DEF_CLASS):
in you entry file:

BEGIN_FACTORY (stringSteinberg, stringSteinbergURL, stringSteinbergEmail, PFactoryInfo::kUnicode)

{
	// check which classFlags (Vst::kDistributable..), subCategories, version and name you want
	TUID lcid = cid; // read a cid from your config file
	static PClassInfo2 componentClass (lcid, PClassInfo::kManyInstances,kVstAudioEffectClass,name,classFlags,subCategories,0,version,kVstVersionString)
	gPluginFactory->registerClass (&componentClass,createMethod); // register the class
}

END_FACTORY