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

Asked

Viewed 125 times

0

good morning

I am creating a WCF application and would like help or direction at the following point: I need to make the app available for anyone to download and test, like 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.

1 answer

3

I think you’d need the following:

  1. Save the installation date (Either on a localDB or in the registry)
  2. Identify the current date

If you are going to do by date, you should worry a lot about the restriction, because if the user changes the date may give problem, and if you take the date of a Webservice you will require the user to be logged in.

I did something similar a while ago, but I didn’t care much about the date control, I did the following:

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

When starting the system, I check if the date has passed, if it has not passed, I check if the uses have passed. Save the uses on a counter on a localDB along with the app information.

This was the best way, and the fastest I found to do something similar to what you are wanting.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.