am developing an desktop application ,for that am providing trial licence for 30 days.But if 30 days over ,if we change system date and time ,it will again back to the 30 days trial period ... how to overcome this...

Recommended Answers

All 2 Replies

One way is for the app to link to a server that you control somewhere to check the trial licence period.

there is no fool-proof system. the best way I can come up with:
add a serial number. on run -> contact a webservice.
if first run -> write datum (server datum - no cheating on the client side possible)
verify licence to db
if licence doesn't exist, quit application

if not first run
-> verify written datum with current datum. if current datum more then 30 days after first run - remove licence from db

unfortunately, this does require a internet connection, which you may not want to force on the user, since it's a desktop application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.