Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Making an app not function after some time

Making an app not function after some time

Scheduled Pinned Locked Moved C#
question
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    naglbitur
    wrote on last edited by
    #1

    Hi. I am wondering how one goes about making an application not work after some time. I just made an app and I want it to work for a year and then the buyer needs to buy again. How do I do that? This is similar to how many companies do, they license their software for some time and after some time it stops working or something like that. How is this done? Thanks, F

    T T L 3 Replies Last reply
    0
    • N naglbitur

      Hi. I am wondering how one goes about making an application not work after some time. I just made an app and I want it to work for a year and then the buyer needs to buy again. How do I do that? This is similar to how many companies do, they license their software for some time and after some time it stops working or something like that. How is this done? Thanks, F

      T Offline
      T Offline
      Timothy_1982
      wrote on last edited by
      #2

      i don't have professional experience in this matter, but the first thing that comes up with me , is registering a start date somewhere in registry, and make your application check that date everytime it starts. I would not check the system time, because with putting it back, the program should work again. Now i'm curious how other people think of this.

      1 Reply Last reply
      0
      • N naglbitur

        Hi. I am wondering how one goes about making an application not work after some time. I just made an app and I want it to work for a year and then the buyer needs to buy again. How do I do that? This is similar to how many companies do, they license their software for some time and after some time it stops working or something like that. How is this done? Thanks, F

        T Offline
        T Offline
        thomasa
        wrote on last edited by
        #3

        You have to store the date the application was started the first time, then every time the application starts you have to compare todays date with the stored date. The user can ofcours youst revind the date in his bios, to make the application work again. Thus, if you the application requirs internett access, you could stor the date on a private server, and compare it with the servers "todays date".

        N 2 Replies Last reply
        0
        • T thomasa

          You have to store the date the application was started the first time, then every time the application starts you have to compare todays date with the stored date. The user can ofcours youst revind the date in his bios, to make the application work again. Thus, if you the application requirs internett access, you could stor the date on a private server, and compare it with the servers "todays date".

          N Offline
          N Offline
          naglbitur
          wrote on last edited by
          #4

          Hi. Can you maybe elaborate a little more? Isn´t there some simple way of doing this? I was thinking of DateTime, perhaps creating a thread that checks to see if year is 2007 and then disables something in the program. Do you know how to do this? Thanks, F

          1 Reply Last reply
          0
          • T thomasa

            You have to store the date the application was started the first time, then every time the application starts you have to compare todays date with the stored date. The user can ofcours youst revind the date in his bios, to make the application work again. Thus, if you the application requirs internett access, you could stor the date on a private server, and compare it with the servers "todays date".

            N Offline
            N Offline
            naglbitur
            wrote on last edited by
            #5

            Hi. I was thinking about creating a thread that checks to see if year is 2007 and then disables something in the app. Is this possible? Perhaps someone can show me how this is done as it seems to be an easy way of doing this. Thanks, F

            G 1 Reply Last reply
            0
            • N naglbitur

              Hi. I was thinking about creating a thread that checks to see if year is 2007 and then disables something in the app. Is this possible? Perhaps someone can show me how this is done as it seems to be an easy way of doing this. Thanks, F

              G Offline
              G Offline
              Gavin Roberts
              wrote on last edited by
              #6

              Why don't you check when the executed file was created? Although you can change the created date/time of a file. Even when the user changes the date/time the created date will always remain the same, then you have the problem of getting the correct date/time for that user because if they set the clock back, DateTime.Now() should return the changed date/time. If internet access is require then I am sure you can connect to Microsofts time server to get the time, or you could use your own server. You could try and get the bios time? Not sure how tho, and if the date/time is set back further then the date/time created for that file then stop it from working. Then you'd have to set some sort of flag, file/registry etc just incase the user uninstalls and reinstalls as the date it was created will now be the day they un/installed the software. Hope that helps? Gav

              1 Reply Last reply
              0
              • N naglbitur

                Hi. I am wondering how one goes about making an application not work after some time. I just made an app and I want it to work for a year and then the buyer needs to buy again. How do I do that? This is similar to how many companies do, they license their software for some time and after some time it stops working or something like that. How is this done? Thanks, F

                L Offline
                L Offline
                Luis Alonso Ramos
                wrote on last edited by
                #7

                What you are trying to do is not easy at all (if you want something reliable at least.) You could start by reading this article[^].

                Luis Alonso Ramos Intelectix Chihuahua, Mexico

                Not much here: My CP Blog!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups