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. How to set expiry date for my software

How to set expiry date for my software

Scheduled Pinned Locked Moved C#
questionwindows-admintutorialworkspace
5 Posts 4 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.
  • S Offline
    S Offline
    shafqaat
    wrote on last edited by
    #1

    HELLO I want to set 1 Month expiry date for my software. How can I do this.User can set system clock in back date,So how can i check this. Using Dot Net how can I make installable setup.Should I write registry keys at time of installation. If yes how? Regards

    V A 2 Replies Last reply
    0
    • S shafqaat

      HELLO I want to set 1 Month expiry date for my software. How can I do this.User can set system clock in back date,So how can i check this. Using Dot Net how can I make installable setup.Should I write registry keys at time of installation. If yes how? Regards

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      You can also have an Activation WebService and a kind of similar crosschecking validation to do this trick. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/

      S 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        You can also have an Activation WebService and a kind of similar crosschecking validation to do this trick. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/

        S Offline
        S Offline
        shafqaat
        wrote on last edited by
        #3

        Webservice is notpossible in my case.There are products in market that have trial version for 1 month.After one month they got expired like Norton ani virus.Even if we set system clock in back dates..How they do this...

        1 Reply Last reply
        0
        • S shafqaat

          HELLO I want to set 1 Month expiry date for my software. How can I do this.User can set system clock in back date,So how can i check this. Using Dot Net how can I make installable setup.Should I write registry keys at time of installation. If yes how? Regards

          A Offline
          A Offline
          Ashok Dhamija
          wrote on last edited by
          #4

          To prevent back-date being used, implement a scheme like this: 1. At the time of installation, set the date of installation. 2. At the time of every use of software, set some variable for that date as the last date used and store it somewhere for further use. If this variable already contains a date which is later than the date of fresh use of software, do NOT reset it and let it contain that later date. 3. Next, at the time of every use of software, check for today's date. If this date is prior to the last date used stored in step 2 above, then set today's date to the aforesaid last date used. Now check the validity of software from this "revised today's date" from the date of installation and see whether it is less than 30 days or more. Regards, Ashok Dhamija _____________________________ Padam Technologies

          M 1 Reply Last reply
          0
          • A Ashok Dhamija

            To prevent back-date being used, implement a scheme like this: 1. At the time of installation, set the date of installation. 2. At the time of every use of software, set some variable for that date as the last date used and store it somewhere for further use. If this variable already contains a date which is later than the date of fresh use of software, do NOT reset it and let it contain that later date. 3. Next, at the time of every use of software, check for today's date. If this date is prior to the last date used stored in step 2 above, then set today's date to the aforesaid last date used. Now check the validity of software from this "revised today's date" from the date of installation and see whether it is less than 30 days or more. Regards, Ashok Dhamija _____________________________ Padam Technologies

            M Offline
            M Offline
            M 2000
            wrote on last edited by
            #5

            Hi I have an additional question: Where should I store the date of installation? The user should not be able to delete or change it. Thanks. -- modified at 9:17 Wednesday 9th November, 2005

            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