Page 1 of 1

Trial Based Applicatiion

Posted: Wed Jul 08, 2009 12:59 pm
by SirWobbyTheFirst
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

Posted: Wed Jul 08, 2009 1:17 pm
by Klaus
Yep, but I would rather use "preopenstack" than "preopencard" ;-)

Posted: Wed Jul 08, 2009 2:14 pm
by SirWobbyTheFirst
NEVER!!! :lol:

Posted: Wed Jul 08, 2009 3:22 pm
by Klaus
OK, if you like to create "annoy-ware" :D

Posted: Wed Jul 08, 2009 4:13 pm
by mwieder
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.

Posted: Sat Jul 11, 2009 5:13 am
by shadowslash
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