Results 1 to 14 of 14

Thread: How do i make my program work for 5 times and then Expire

  1. #1
    Beginner is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Mar 2008
    Posts
    114
    Reputation
    69

    How do i make my program work for 5 times and then Expire

    How do i make my program work for 5 times and then Expire and will never work again ? In which i'll have to rebuild a new one using VB so that it will work for another 5 times more.The approach i used is as follows.

    I created a text file with the name zxs.txt and set it as a counter for the program:













    So now to make the program open i'll have to open that text file and set the value to zero. Now what im after is:

    I want the program to run for 5 times, when it expires i want to manually create the zxs.txt file run the program so that the number of trials is back to zero."Then i run the program so that it resets the trial from the text file".Then safely i can delete the text file , moreover i want to make this step as a secret. Now what happens when i run the program without that file is:




    Instead i want the program to run and make the zxs.txt a secret way to reset the program. If anyone how any idea how to do so please come forward. Any other suggestions are welcomed.
    Nothing Happens But first a dream "Carl Sandburg"

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,225
    Reputation
    2370
    Code:
    If IO.File.Exists(path) Then ....

  3. #3
    Beginner is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Mar 2008
    Posts
    114
    Reputation
    69
    Come again please i have no idea about that..
    Nothing Happens But first a dream "Carl Sandburg"

  4. #4
    Icyculyr is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Feb 2008
    Posts
    25
    Reputation
    67
    Lol, hey,

    Depends how you want to do it, do you want it to be secure, like impossible to crack, or just fairly difficult, if you hide a file hard enough, it can't be found, and you can make it tamper proof by encrypting it, and writing the first line like [THISISVALID] and then how many attempts you have made underneath,

    and compare the first line read to that string, disable your application if it doesn't match correctly...

    Need any more info?

    Cheers

  5. #5
    ghostpally is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jan 2008
    Posts
    23
    Reputation
    68
    To not get that error that it cant fine you file. do this
    If System.IO.File.Exists("Here you put you patch of the file.") Then
    Else
    MsgBox("Sorry But you Trial account has expired")
    application.exit()
    End If
    End Sub
    So say your file in the the same folder as your EXE then you would use this code

    If System.IO.File.Exists("zxs.txt") Then
    Else
    MsgBox("Sorry But you Trial account has expired")
    application.exit()
    End If
    End Sub

  6. #6
    Beginner is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Mar 2008
    Posts
    114
    Reputation
    69
    I found an Application Trial Maker about how to create the trial application. This article supplies serial maker dll for the application. I got the source code about how to use it. It is a C# example. Is there any software for converting the code to get VB.Net code?
    Nothing Happens But first a dream "Carl Sandburg"

  7. #7
    ghostpally is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jan 2008
    Posts
    23
    Reputation
    68
    I dont belive there is a convert beginner. i think that you should just try my example. its not so hard

  8. #8
    Icyculyr is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Feb 2008
    Posts
    25
    Reputation
    67
    He wants something "hack proof" ghost, and why don't you convert the C# example yourself, people on the forums will probably help if you post...

    Cheers
    Icyculyr

  9. #9
    Beginner is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Mar 2008
    Posts
    114
    Reputation
    69
    Quote Originally Posted by Icyculyr View Post
    He wants something "hack proof" ghost, and why don't you convert the C# example yourself, people on the forums will probably help if you post...

    Cheers
    Icyculyr
    My post wasnt meant for beginners.

    Chill man
    Nothing Happens But first a dream "Carl Sandburg"

  10. #10
    daniel02_0403's Avatar
    daniel02_0403 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jun 2008
    Location
    Philippines
    Posts
    19
    Reputation
    64
    hello beginner ....

    why don't you try using the registry to put your counter with ....
    although i haven't tried it yet .. but it might help ....

    hope this can help you ...

  11. #11
    Xancholy is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2006
    Posts
    143
    Reputation
    87
    If you're looking for a 3rd party solution, try PC Guard .NET

    You can protect your app by numerous methods.

  12. #12
    FreeriderUK is offline VB.NET Forum Fanatic
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Jun 2006
    Location
    London
    Posts
    100
    Reputation
    89
    I'd give VBOLock a try.

    http://www.moonlight-software.com/vbolock.htm

    Very reasonable price. Good customer support.

  13. #13
    cjard's Avatar
    cjard is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2006
    Posts
    7,027
    Reputation
    1706
    Didnt Microsoft recently provide a framework for this? I think it's called Sharepoint Services but i'm not sure. It was in the News channel of VS2005

  14. #14
    cjard's Avatar
    cjard is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2006
    Posts
    7,027
    Reputation
    1706
    SOrry, my bad memory.. it's called SLP Services:
    http://www.microsoft.com/SLPS/visualstudiousers.aspx

Bookmarks

Posting Permissions

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