Results 1 to 28 of 28

Thread: Trial System

  1. #1

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219

    Trial System

    HI, I need help making a trial system for my program. I want it so it can only be exucted 3 times. Registry is out of the question because i have tried and people always edit it. So i want to use a some sort of system that uses my web server to keep track of the HD serial Numbers(I know how to do this). This is also good because i can get an idea of how many people tried it. Thanks in Advance
    -Rob

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Well if the person is not connected to the internet, then thats a problem. Why dont you just keep a count internally of how many time the program has been executed? You can create a file on the users harddrive with a name that wont draw too much attention. Set the attributes to read only and hidden and write to it the amount of times the program is executed.

  3. #3

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    well my application uses the interent so know one with out the interent whould be useing it in the first place.
    -Rob

  4. #4

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Is there sum way i can use php?
    -Rob

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by VBGangsta
    Is there sum way i can use php?
    You are asking this in a .Net forum? Anyway, why don't you start looking into web services. It seems to be what you want, and you can stay with vb.net.

  6. #6
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    Re: Trial System

    Originally posted by VBGangsta
    So i want to use a some sort of system that uses my web server to keep track of the HD serial Numbers(I know how to do this).
    Is that legal? To keep track of the HD serial number of users without letting them know?
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  7. #7

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    I dont see why not, its a useless piece if information. I just want it to keep a statistic of how many people are trying the trial.
    -Rob

  8. #8
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    Create a webservice that creates a userID for the application then store this userID in the registry. Then use the webservice to keep track of how many times the program has been used.
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by VBGangsta
    I dont see why not, its a useless piece if information. I just want it to keep a statistic of how many people are trying the trial.
    You should disclose that while on a trial, your app communicates hardware information. If you don't, you are opening yourself to privacy type lawsuits.

  10. #10

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    If i were to time how long they could use the trial, does the timers use the system clock because if they do people could just turn back their clocks and use it for as long as they want.
    -Rob

  11. #11
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you were to use a WebService you could log the time on the server so it wouldn't matter if they changed their clock on the client side.

    Here is the idea:
    When the app starts up it makes one web service call which is a function: IsTrialOver(ClientID) As Boolean which accepts whatever you decide is a unique id for the client as an argument and returns True/False whether or not to continue running the app. On the server side the web service logs the clientid and current time then checks against the first entry for that client to see if the trial has expired.
    ClientID Time
    1 1/1/03 12:16 am 'logged the first time used by client 1

    If Now>ClientTime.AddDays(30) Then Return True 'return true that the trial is expired or over and then in the app terminate.
    Last edited by Edneeis; Dec 11th, 2003 at 04:25 PM.

  12. #12

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    I like the Idea of useing the server time. This is what i want to happen. I only want them to be able to execute the trial 3 times, so i guess i will have to use the registry for this part but them i also only want the trial to run for 5 minutes. I want to show the 5 minutes counting down in the title bar of the app. So how whould i get the server time?
    -Rob

  13. #13
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    A web service runs on the server so the local time in the function should be server side.

  14. #14
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    Your in luck! I am planning on developing a Trial/Demo system for the developers here on VB Forums. It won't be written in vb though Sorry Won't happen for a few months so stay tuned!

  15. #15

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Cool nkad!!

    Although this "server timer" idea is exactly what i need, i think its a little over my head. When u say server side u mean running on the server right? well how could i write sumthing that does that?
    -Rob

  16. #16
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You need to write a web service and host in on the web. There are tutorials on making web services in the help files, but it isn't hard.

  17. #17
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by Edneeis
    You need to write a web service and host in on the web. There are tutorials on making web services in the help files, but it isn't hard.
    As a matter of fact, this system is downright easy! Maybe 50 lines of code max.

  18. #18

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Could someone please start me off, im not sure what to do. I tried searching but no luck.
    -Rob

  19. #19
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Keep searching you'll figure it out. Here is a small example to get you started. I am running the web service on my server but the code for it is in the zip as well. It makes each clientID (which is just a variable in the app) expire 1 minute after the first use. you can tweak it from there.

  20. #20

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    ok thanks, i edited it to my liking but when i try to add a web reference it causes VS to close down. I uploaded the .asmx file and the wsdl file is that every thing or is there more and what link should i put in for the web ref, to the .asmx?
    -Rob

  21. #21
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The web service requires more than just the file, it gets compiled as part of a web application. You should really read up on web services in the help or else where and it will tell you what you need to do.

  22. #22

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    o ok, but when i try to add the reference it trys to find soumthing to reference, so what should i direct it to, the XML?
    -Rob

  23. #23
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Now you'd reference the URL of the Web Service.

  24. #24

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Does it matter that my server doesnt have asp?
    -Rob

  25. #25
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Your server will need to have .NET and be able to run web services or aspx.

  26. #26

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    well, they say they run linux but VS says it has asp.net 1.0 so will this work?
    -Rob

  27. #27
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    wossname, you will need to find a host that runs .Net on their server. Typically (i say because there may be that one I never saw that hosts .Net on a platform other than windows), these will be hosts with Window servers .

    http://www.accesshosts.com/directory/asp-dot-net.php


    Alternatively, you could build a web service in Java, but it doesn't sound you want to deal with that. (And I never have written one myself in Java).

  28. #28

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    Do you happen to know any free ones because i am already paying a fortune for my server, and i whould only need a small amount of space. Thanks
    -Rob

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