How to make demo(trial version) vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arkhe3
    New Member
    • Jan 2010
    • 5

    How to make demo(trial version) vb.net

    Hello, i do a project in vb.net.
    and i want to do demo(TRİAL VERSION).
    Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim free As Integer = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("demo").GetValue("time", 5)
    
            Label1.Text = free& " stay days "
    
            hak -= 1
    
            If hak < 0 Then
    
                MsgBox("THE END please buy this programm")
    
                Me.Close()
    
    
    
            Else
                Microsoft.Win32.Registry.CurrentUser.CreateSubKey("demo").SetValue("time", free)
            End If
        End Sub
    this codes are not daily. i don't want this codes....



    i want trial version the days..
    what can i do?

    help me please....
    Last edited by Frinavale; Mar 29 '10, 03:11 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    I'll be the one to break the bad news...
    Your scheme for protecting your program via a registry entry is so simplistic that it isn't worth implementing. Just about anyone can break this 'security' with about 5 minutes of effort.

    One way is to have your program require registration on a web server. You can then issue unique demo codes that will expire or unique paid codes that don't

    You might also look into the various security options by companies such as Aladdin. http://www.aladdin.com/ Who have software wrappers for your applications as well as hardware security dongles.

    Comment

    • john greene

      #3
      Or, you could code the install date into an xml page and look for

      Code:
      date.today < installdate.addDays(30)
      start app
      else
      msgbox("buy the program already cheapo")
      app.close()
      then when adding xml to project folder(if using professional version) mark xml as hidden
      Last edited by Dormilich; Nov 13 '10, 08:01 AM. Reason: please use [CODE] [/CODE] tags when posting code

      Comment

      Working...