Solved

Tracking days in time-limited shareware

Posted on 1997-06-07
8
207 Views
Last Modified: 2013-11-14
I want to know how to make a counter that increases each day.

It should be a little more complicated than adding/changing a file in the program's path or \windows and \windows\system path or checking/changing a file's date...

I CRC-checked all the files in the HD before and after, and didn't see a change. Take, for example, SpiderPad, Netscape Cache Explorer or InstallShield. And there are dozens.

TAKE CARE OF THESE FACTS ABOUT SOFTWARES I EXAMINED:

1. No change in checksum/CRC was detected (before-after tests)
2. No comparing of some hidden registry value or something to the system's date. Else - you'd just set the date to few days before.
0
Comment
Question by:pixie060797
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 1

Expert Comment

by:Amberite
ID: 1426962
Put a value in the system registry (using savesetting command in vb5, and then getsetting to restore it) telling it the date the first time the program is run. Then, each time the program is run, compare the value in the registry, to that of the date of the system (by using the commands day(now), month(now), and year(now)). If you need help on any of these commands, look up savesetting, getsetting, day, month, and year.
0
 
LVL 1

Expert Comment

by:Amberite
ID: 1426963
can you give me a reason why thats wrong?! Thats exactly what I use to protect my programs, and it works.
0
 
LVL 5

Expert Comment

by:y96andha
ID: 1426964
Storing it in the registry is a good idea. The only place to save something permanently is on the hard disk. If you don't want to put it in a normal file (or ini-file or whatever), you have to use the registry.

Don't use savesetting, though, use some other key name, something that nobody would think belongs to your program.

And don't save the count directly, do some mathematical translation on it before, or it will be easy to "search and replace".

Finally, don't count on it being the perfect method, whichever one you choose. For example, if running under Windows NT, all registry and file accesses might be logged. No big problem to find out what you're doing. And strange actions not expected by an installation program might even be perceived as a trojan horse or virus.



0
 
LVL 4

Expert Comment

by:Chizl
ID: 1426965
If you use system date all someone has to do is set the date back on the computer one year and tada!  This program is good for one more year.   I have created an OCX file that will stop this all from happening.   It's called Shareware Lock and I will be releasing it soon..   There is no way to hack it or cheat it.  On the first of July it expires and sooner if I want with a touch of a key..  http://www.sourcesite.simplenet.com/URLVerifier/ you can download my shareware program and tell me what you think of the Shareware Lock.  The login is "sw1" (case sensitive).  If you like it and want more info about it email me at chizl@cyberdude.com  

l8r,
Chizl
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 2

Accepted Solution

by:
PedroMVGomes earned 100 total points
ID: 1426966
Normaly i protect my files by stroring in the end off them the Data.

You can after compiling your project make a simple one, witch will open the exe file and append in it the initial date. Then your project must also have a routine that checks the end of the file for the date and compares it with the current date.

Note wen first writing the date leave some empty bytes at the end of the file, i.e. don't write the date exact end of the file, write it at a possition 5 or 6 bytes after.

Particulary importat is that you store the date in some sorte of code, and you must know if it is missing, to prevent hacking.

This is a simple way, but it works.
0
 

Author Comment

by:pixie060797
ID: 1426967
Edited text of question
0
 
LVL 5

Expert Comment

by:y96andha
ID: 1426968
Please post a link to an example program, a small one, that I can download and try to check how it works.
0
 

Author Comment

by:pixie060797
ID: 1426969
SpiderPad does that, it's about 2.5MB, but you'll enjoy this powerful HTML editor. It's located at:
http://www.sixlegs.com/sp32.zip
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now