473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

N-Day Expiry Time Bomb in C#

1
I'd like to provide my client an application which will stop working after a certain number of days have passed since the first invocation (trial software) and I DO NOT wish to use the registry for this purpose.

Any ideas how i should go about implementing this?

Best Regards,
Faran
Aug 27 '08 #1
3 5264
cloud255
427 Expert 256MB
Note: This is not a specific to C#.NET post, it is more general software (maybe the mods will move it to software development forum)

well, if the client has internet access, you could set it up that each copy has a unique id, after install it sends this ID to a server, the server makes a time stamp, then each time the program is launched the server checks against that time stamp, and sends a response. If the application doesn't recieve the appropriate response, it simple closes and shows a "buy now" or whatever.

another option would be an encrypted .dat file or such which is created on the client machine when the application is installed and is accessed on each run of the application where it compares the dates and then performes a similiar actions to above. Of course if the user would delete this file, it might cause problems...

But to be honest with you, the level of the current hacking tools (there are so many) makes it so basic to crack a program that you need to do some real smart programming like checking that the dates dont change while the app is running (if they do then someone is using something similiar to a trainer to keep the expiary date from arriving).

A really determined user might also just keep setting their system time and thus prevent the expiary date from arriving. perhaps you should look into using some sort of counter where the user may launch the application for x times before it expires (agian can be hacked, also the stand-by funciton of windows could thwart this mechanism) so then you would also have to see how long the applicaiton has been running (like 20 hours or so then close the app and force a re-open of the application).

In general this is an issue with software, something i have tried (unseccesfully) several times to achieve, but there is always a way to crack software, which is sad because my landlord doesn't allow me the 'crack' the rent mechanism...
Aug 27 '08 #2
Curtis Rutland
3,256 Expert 2GB
Good call, cloud. Moving to Software Development.
Aug 27 '08 #3
RedSon
5,000 Expert 4TB
You could try the shareware starter kit provided by Microsoft:
http://msdn.microsoft.com/en-us/vstudio/cc533530.aspx
Aug 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Hardeep Rakhra | last post by:
Hi i have a snippet of JS that i want to change so that the cookie it creates lasts only 48 hours. (or any other length of time i decide, but 48hours seems right for now) Only thing i can't...
4
by: Chris | last post by:
I have an asp application. However, the scripting time is too early too expried. How can I extend the scripting time for an individual asp page, or set for one website. Chris
1
by: John Park | last post by:
set Server.ScriptTimeout variable to 214783647. it's maximum timeout value. insert the following sentence at start line of your asp file. <% Server.ScriptTimeout=2147483647 %>
2
by: gardnern | last post by:
Is it possible to get the expiration date/time of a cookie? I need to limit someone to visiting a couple of pages for 45 minutes max and would like to show them how much time they have left. I dont...
6
by: James P. Clark | last post by:
I'd like to provide my client an application which will stop working after a certain number of days have passed since the first invocation (trial software). Any ideas on how to make this work even if...
6
by: mymatebob | last post by:
Hi, I am using cookies to keep track if a user is logged into my system, and would like to display the time that the user has left logged in. One solution is to display the time left until the...
2
sumittyagi
by: sumittyagi | last post by:
I am using websphere 5.1 and I want to set session timeout for my application. Now I know two ways of setting it (declaratively and programmatically). * declaratively in web.xml of the...
2
by: Syed Asad Ali | last post by:
Hi All, Is there any way to expire cache using cache.Insert(...) for a specified date and time? For example :I want to expire cache on Monday 9:30 AM in 1 week time and only on Monday 9:30 AM. ...
1
by: sazan | last post by:
Hi, I am new in java, i needed help in setting the expiry time for the session. I need the session to expire after 3 minutes, then show a table of the pages i visited during the 3 minutes and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.