WPF - How to create a mechanism to make the application available for testing for x days?

0

Good morning

I am creating an application in WCF and would like help or guidance at the following point: I need to make the app available for anyone to download and test it, type a test for 30 days and then restrict access.

How can I create such a mechanism in WPF?

Thank you in advance for your attention and help.

    
asked by anonymous 04.03.2015 / 16:00

1 answer

3

I think you would need the following:

  • Save the installation date (either in a localDB or in the registry)
  • Identify the current date
  • If you do it by date, you should be very concerned about the restriction, because if the user changes the date it can give a problem, and if you get the date of a WebService you will have to be logged in.

    I did a similar thing a while back, but I did not care much about date tracking, I did the following:

    The user can use for 30 days or X Uses (initializations).

    When I start the system, I check if the date has already passed, if it has not passed if the usage has passed. Except the uses in a counter in a localDB along with the information of the app.

    This was the best, fastest way I found to do something similar to what you're looking for.

        
    04.03.2015 / 16:11