Results 1 to 13 of 13

Thread: Expiry date for demo product

  1. #1

    Thread Starter
    Addicted Member haihems's Avatar
    Join Date
    Oct 2004
    Posts
    150

    Cool Expiry date for demo product

    Hi,
    I want to give a demo version of my product to the user, which should be expired after 2 months from the date of installation. Without comapring the system date, how can I do this? any idea??
    ( I beleive the system date is changebale, so if the user change the system date, my product will not get crash after 2 months !! am i right???)
    Thanks..
    Think Before Ink

    Visual Studio .NET 2002/.NET Framework 1.0

  2. #2

    Thread Starter
    Addicted Member haihems's Avatar
    Join Date
    Oct 2004
    Posts
    150

    Re: Expiry date for demo product

    Hi
    I Posted this thread, long back. There is no reply. Pls try to help me on this....
    Think Before Ink

    Visual Studio .NET 2002/.NET Framework 1.0

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Expiry date for demo product

    You would need to limit the number of uses as well as the time. That way, even if they keep putting their clock back the demo will still expire. You might want to hide a reference to the number of uses in the Registry, perhaps encrypted, to make it difficult to tamper with. There are products available that will handle this stuff for you. They have various levels of cost and functionality.

  4. #4

    Thread Starter
    Addicted Member haihems's Avatar
    Join Date
    Oct 2004
    Posts
    150

    Re: Expiry date for demo product

    So, what u mean is , I need to put a counter for the no. of time, the user using the product....Isn't it?
    Think Before Ink

    Visual Studio .NET 2002/.NET Framework 1.0

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Expiry date for demo product

    That's correct. I've encountered a great number of demos that do just that.

  6. #6

    Thread Starter
    Addicted Member haihems's Avatar
    Join Date
    Oct 2004
    Posts
    150

    Re: Expiry date for demo product

    ok thanks
    Think Before Ink

    Visual Studio .NET 2002/.NET Framework 1.0

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Expiry date for demo product

    Quote Originally Posted by jmcilhinney
    That's correct. I've encountered a great number of demos that do just that.
    Got any product names or links?

  8. #8
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Expiry date for demo product

    Quote Originally Posted by mendhak
    Got any product names or links?
    I wonder how you could have never seen a demo project at all.
    just go to adobe.com,macromedia.com or sony.com.
    Download any of their trial softwares.They only work for a certain number of times/certain number of days.
    C'mon,this is so silly,i know...but,what you asked sounds like this is what you asked...or am i misunderstanding your question?
    Godwin

    Help someone else with what someone helped you!

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Expiry date for demo product

    You're misunderstanding the question.

    I'm looking to implement that functionality in a program, not see it in action.

  10. #10
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Expiry date for demo product

    ok,here,I just quickly made up a small program to show you....Here,Im storing onto a file everytime the program loads.In this example,the program is allowed to run only 3 times.Its checking if the program is run more than 3 times.If it exceeds 3 times,then,the trial period ends.Well,yes,Its easy to crack it,but,only if they knew the file where im storing on and stuff. I guess almost all softwares today are cracked that ways.
    VB Code:
    1. Dim filenumber As Integer
    2.     Dim times_used As Integer = 1
    3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    4.         filenumber = FreeFile()
    5.         If IO.File.Exists(Application.StartupPath & "\check.myext") Then
    6.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite)
    7.             FileGet(filenumber, times_used)
    8.             MsgBox("You have executed this software " & (times_used) & " times")
    9.             FileClose(filenumber)
    10.             If times_used >= 3 Then
    11.                 MsgBox("Sorry,Your trial period is over!!")
    12.                 Application.Exit()
    13.             End If
    14.             times_used = times_used + 1
    15.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite)
    16.             FilePut(filenumber, times_used)
    17.         Else
    18.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite)
    19.             FilePut(filenumber, times_used)
    20.         End If
    21.     End Sub
    If this is really that helpful,please tell me so that Ill put a copy in that forum where they submit code Thanks..oh yeah,i wont forget the comments too if im putting there
    Hope this helps...
    Last edited by uniquegodwin; Aug 24th, 2005 at 08:18 AM.
    Godwin

    Help someone else with what someone helped you!

  11. #11
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Expiry date for demo product

    Another method would be to store the value on to the registry as Jm said
    You can change the name and the myext to your extension in the above program and store the file somewhereee hidden so that the user wont find it.Encrypt it..hmm...do anything you want with it..lol..i have no idea what else you can do with it to prevent crackers from cracking it but,theyve cracked every software that exists.Even windows has been cracked...lol...is there anything they havent cracked in that way? The only thing you can do is modify the file hide it in different places in different versions or there might be some nice way...someone can help for that
    Godwin

    Help someone else with what someone helped you!

  12. #12
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Expiry date for demo product

    Heres my ugly commented neat proggy : Made it a function and easier to read and use
    VB Code:
    1. Dim filenumber As Integer 'This is a variable were delcaring to get in the value of freefile function.It assigns automatically the value which represents the file
    2.     Dim times_used As Integer = 1 'here,our program sets how many times used so far..were initializing it here
    3.     Dim max_limit As Integer = 5 'Set the maximum number of times he can use here..
    4.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    5.         demosoft()
    6.     End Sub
    7.     Private Sub demosoft()
    8.         filenumber = FreeFile() 'We assign the number which represents which file to open
    9.         If IO.File.Exists(Application.StartupPath & "\check.myext") Then 'Checking if file exists..
    10.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite) 'If exists,were opening it in readwrite mode.
    11.             FileGet(filenumber, times_used) 'Were reading from the file the value thats stored..ie the number of times he has used
    12.             MsgBox("You have executed this software " & (times_used) & " times") 'hmmm,were displaying it here..:)
    13.             FileClose(filenumber) 'Lets close the file now.
    14.             If times_used >= max_limit Then 'Were checking if the user has used the software more than the limit specified
    15.                 MsgBox("Sorry,Your trial period is over!!Please purchase this software ;-) ") 'oops,if it has exceeded,then,he cant use it :p ;)
    16.                 Application.Exit() 'Say Goodbye to the user..cos,he needs to purchase..We exit our app here.
    17.             End If
    18.             times_used = times_used + 1 'if he has used it once before,lets make it 2 now since this is the 2nd time
    19.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite) 'storing the value back here :)
    20.             FilePut(filenumber, times_used)
    21.         Else
    22.             'This part is if the user is using the software for the 1st time.The file has to be created
    23.             FileOpen(filenumber, Application.StartupPath & "\check.myext", OpenMode.Random, OpenAccess.ReadWrite)
    24.             FilePut(filenumber, times_used) 'ok,now he has opened and used once,so,lets write it in here.
    25.         End If
    26.     End Sub
    Godwin

    Help someone else with what someone helped you!

  13. #13
    Hyperactive Member vincentg's Avatar
    Join Date
    Jun 2005
    Location
    Chicago IL, USA
    Posts
    261

    Re: Expiry date for demo product

    hmmm, I have some little experience with this one..which most of my projects has a database included, either you can use a windows registry put some date or number of uses there, encrypt it or whatever you want...

    But sometimes I made it so simple. made some variables like
    Public glDemo Const = True
    Public gnMaxRecord = 15
    then compile it, make a package & deployment and deliver the CD to the client. Trapping it in the recordcount...

    The catch is, you want your client to like you software so you gave them all functionality there but it has something like this on every transactions or record added

    If glDemo Then
    If rsTable.RecordCount = gnMaxRecord Then
    Msgbox ("Maximum record reached for DemoVersion.Please purchase this software")
    Exit Sub
    End If
    End If


    Have a nice day.

Posting Permissions

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



Click Here to Expand Forum to Full Width