THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/06/2009 at 16:40, xxxxxxxx wrote:
Any suggestions for making an expiring demo that can't easily be reset by trashing the StartTime/product key file from User/Library/Preferences/Maxon/CinemaWhateverVersion/prefs/ ?
I need to collect data on the number of people using a little plugin I plan to release this week and I'd like to compare the number of raw downloads to the number of people that actually register after a very short trial period.
I currently bury a StartTime in the product key file and use it to expire the demo version as implied in Katachi's example above. Works fine, but the user can just trash the pref file and get a fresh start rather than being forced to register (a painless but necessary process). My approaches to avoid this:
- Put StartTime in the actual Plugin File, recompile. Problem: No longer supposed to write files to the Applications/Maxon/Cinema4D11/Plugins folder.
- Bury StartTime somewhere deeper in the User/Library/Preference/Maxon/Cinema..../someDeepFolder. Problem: Seems sloppy, probably illegal from the Development team perspective, there aren't many deep folders in prefs, so the file can still be ditched.
- Hard Code a start date into my release and change it every day. Problem... horrible idea.
- Write some sort of .php script that will generate a StartTime File, perhaps an invisible one, that will load into my Plugin's Download folder with the plugin and a WebLoc reference file, zip the whole thing and upload it. Problem- I have no idea how to do such a think on the server side, i.e, no knowledge or experience with PHP.
- Just make them register first and forget the whole demo thing. Problem: This will turn away a lot of potential users before they discover the utility of the plugs, and its not as fun as solving one of the other problems above.
I think it would also be handy to compile the serial file before I write it so I don't have to create my own encryption algorithms for storing simple things like start dates... I notice that 3Dkiwi's amazing Python wrapper plugin seems to do this. It would be easy if I could place the compiled file in the same folder as the plugin, but since that is illegal, I'd have to place it in User/.../prefs. Problem is, if the compiled serial file lies outside of the Applications/Maxon/C4d/plugins/myplugin..., I can't "include" it into the original plugin, so I'd appreciate any suggestions on this as well.