THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/12/2010 at 06:39, xxxxxxxx wrote:
its been a while since I coded a bit for cinema and now I have been asked to write some installation routines for an existing plugin. I saw that the more recent C4D versions create a folder in the users AppData to load plugins etc from.
Now the big question is, how are the names of those folders constructed? I have R12 installed and NetRender Client and Server and each folder gets a 8-digit code at the end - I presume this identifies the installed version as this code was the same on two machines I tried. However, I couldn't find this 8 digits anywhere I could read them from during installation - is this information I could compile using the info in the registry or how am I supposed to put the plugin to the correct directory?
Same goes for the values in the registry - all "MAXON" folders in the HKLM\...Uninstall\ have a 8-digit code (different from the one in the user folder) which also seems to stay the same on different machines. Is there a way to read or find out this too?
Reading all directories and than string-comparing them seems a bit.. well, not so nice ;)
And forgive me if that is really something simple and obvious, see my join date - it's really been a while ^^
On 02/12/2010 at 07:26, xxxxxxxx wrote:
If the installer is a standalone there is no other way than letting the user enter the exact path. Using the C4D SDK you can use GeGetStartupWritePath() (only works with 11.5+)
On 02/12/2010 at 10:29, xxxxxxxx wrote:
Hm, yes, installer is stand-alone, and the idea was to have as little user interaction as possible, as there seem to be still some users out there who don't know how to browse to a directory correctly ;)
Same goes for selecting the correct C4D version, so I wanted to install in all installations I am able to locate - solves the issue of missing plugins when net rendering as well.
Is there really no other way, no list of those 8-digit values and coresponding C4D versions?
On 02/12/2010 at 11:04, xxxxxxxx wrote:
As I have no clue where the 8-digits are taken from I really can´t tell. I am sure there is a rule behind it but that can only be answered by anyone from MAXON (which have holidays for the next 5 days). ;)