Mist
Mist

Reputation: 684

C# How to create system date independent trial version

This is my first post. i am keen to know that suppose i will install a winform apps in a 3rd party pc which will stop working when reach expiry date. so what i need to do....when i will install the apps then i will store installation date and expiry date in db. so every try when software will start then check the system date <= expiry date if yes then process else show a message trial period over.

but the problem is if 3rd party user is cleaver enough then he every day change his system date to software installation date before running my winform apps. so my checking for expiry date will never reach and he will use my software month after month.

suppose user may not have internet connection. so give me suggestion how can i design db driven winform trial version independent of system date. looking for good discussion.

thanks

Upvotes: 0

Views: 295

Answers (1)

Kyle Burns
Kyle Burns

Reputation: 1224

There's not a completely "fool proof" way to achieve what you're looking for here - especially without Internet access (and even that can be defeated). If you want to find a balance between limiting the effort that you put into it and making it harder to defeat your scheme, I would suggest adding a counter that increments each time your application is run and then having the trial expire when either a certain count is reached or a certain amount of time has passed (whichever happens first)

Upvotes: 0

Related Questions