Trial Based Applicatiion

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Trial Based Applicatiion

Post by SirWobbyTheFirst » Wed Jul 08, 2009 12:59 pm

I have been tinkering with the Convert command and have found an answer to those people who are looking to make a 30 (Or more) day based trial of their software.

You should use this upon when your applications setup is run and store the value in a custom property or in the registry (If deploying to Windows only.)

Code: Select all

On PreOpenCard
  Local tExpiryDate
  Convert The System Date To DateItems
  -- Substitute 30 for the amount of days you want.
  Add 30 To Item 3 Of It
  Convert It To System Date
  Put It Into tExpiryDate
  -- Save tExpiryDate to the place you want.
  Set The ExpiryDate Of Stack "ActivationDetails" To tExpiryDate
End PreOpenCard
Then when your application fires up you can reference this.

Code: Select all

On PreOpenCard
  Local tExpiryDate
  -- Place the value that you stored earlier into tExpiryDate
  Put The ExpiryDate Of Stack "ActivationDetails" Into tExpiryDate
  If The System Date Is tExpiryDate Then
    Answer Error "The 30 day trial has finished please activate the software to continue."
    Quit
  End If
End PreOpenCard
Hope this helps the people who need it. If I have any more updates I'll post them here. :D

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Jul 08, 2009 1:17 pm

Yep, but I would rather use "preopenstack" than "preopencard" ;-)

SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Post by SirWobbyTheFirst » Wed Jul 08, 2009 2:14 pm

NEVER!!! :lol:

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Jul 08, 2009 3:22 pm

OK, if you like to create "annoy-ware" :D

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Wed Jul 08, 2009 4:13 pm

A: On day 31 the app will continue to function properly.
B: It's very easy to change the system date on the computer to fool this.

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Post by shadowslash » Sat Jul 11, 2009 5:13 am

mwieder wrote:A: On day 31 the app will continue to function properly.
B: It's very easy to change the system date on the computer to fool this.
Yup that is true, if I'm to be the one to create a trial software, the approach I'm gonna do is the same as that only I'm gonna use the registry bit to "mislead" the possible bypasser. They can try to change the registry or time how they want but the settings will be stored to a file that of course wouldn't be easy to find or distinguish... Image
Parañaque, Philippines
Image
Image

Post Reply