Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create a trial app

    Hello
    I have an application and i want to create a trial version of it. I need a decent solution. My first approach is to create two values in an key registry, in which to hold application install date and last open application date, to control the backdate of the system. But the values in registry keys can be modified by anyone, so this is not a good solution....
    if anyoane can help me, pls do...

  • #2
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    Create a simple file named license.lic.
    When the application is being installed write in it:
    installDate=the day date
    but before adding it to the license file encrypt it using a certain algorithm of yours that you choose.
    and paste the encrypted text inside the license.lic.

    When the application starts before doing anything go and check the license.file.
    Get the encrypted text, decrypt it and make date comparisons.

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ckeyrouz View Post
    Create a simple file named license.lic.
    When the application is being installed write in it:
    installDate=the day date
    but before adding it to the license file encrypt it using a certain algorithm of yours that you choose.
    and paste the encrypted text inside the license.lic.

    When the application starts before doing anything go and check the license.file.
    Get the encrypted text, decrypt it and make date comparisons.
    thanks for u're reply....
    i don't have much experience with encryption algorithms, so if u can, pls guide me....

  • #4
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and another problem.....

    what if, before starting the application, the user change system date (with a valid one), and immediatly after changed back to current date ?

  • #5
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    First of all I want to know which language you are using so I can help you with an algorithm to encrypt the license file.

    It was an idea about the date no problem not a big deal, you can find other solutions than the date.
    like when the application starts you start a counter that is equal to the total number of minutes or seconds the application was running.

    in the original license.lic you have a counter = 0 and when the application stops you just update the counter in the license this way: counter = counter + totalRunningtime.

    and every time you start the application you substract the updated counter value of the license from the total tiral period.

    You can find any algorithm.
    if you have a database you can save in a certain table and in an encrypted form the total running time.

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    There are also commercial products that will let you do this FYI. Usually they also give you serial number support for when you sell copies and it lets people convert their trial into a full version after they enter a valid serial number.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •