Deleting/clearing PluginInfo
-
Hi,
what's the best way to clear data stored via WritePluginInfo()?
Should I
- Write 1 Byte of anything, hoping that the complete data that used to sit there will be cleared?
- Write n Bytes of anything, definitely overwriting the complete data that used to sit there (this is what I currently do)?
- Do something entirely different?
Thanks for tips!
Greetings,
Frank -
Hi, @fwilleke80 you are right there is no built-in way to correctly delete all the data.
However, as you stated writing 1Byte of anything is enough since it will replace the whole content.Now if you really want to delete the generated data, WritePluginInfo does the next things:
- On Windows, data is stored in the registry.
- The directory used is HKEY_CURRENT_USER\SOFTWARE\MC4D but if it fails then HKEY_LOCAL_MACHINE\SOFTWARE\MC4D is used.
- The registry key used is VERSION_REGISTRYNAME_pluginID.
VERSION_REGISTRYNAME is generated for each major version and differs for each build like Cineware, c4dpy.
For R21 it's c4d21
- On Mac, the pref folder will be used.
- A file called VERSION_REGISTRYNAME_pluginID will be created and store the data.
VERSION_REGISTRYNAME is generated for each major version and differs for each build like Cineware, c4dpy.
For R21 it's c4d21
- A file called VERSION_REGISTRYNAME_pluginID will be created and store the data.
VERSION_REGISTRYNAME is similar on both Windows and Mac.
Cheers,
Maxime. - On Windows, data is stored in the registry.
-
Super, thank you!!