Search code examples
c#drm

Set expiry date for application


I want to set expire date for my C# Windows application.

It means that i.e after 30 days my app won't work. It is easy to do when we use system time, it means whenever my program starts i check today date and expire date.

The problem is if the user changes system time, my comparison won't be correct.

What other ways can this be done?


Solution

  • May be keep a dummy .dll file in your app install folder, open it and keep the number of days and install date time. Every time application loads up, check it. .Dll files folks wont try to open and read. May be you can encrypt and store in it too. This could be very simple.