PDA

Click to See Complete Forum and Search --> : Security and Demo in Visual Basic


Ghost
Dec 3rd, 1999, 12:51 AM
I am trying to create a demo program in Visual Basic for distribution. I want the demo to stop working after a certain number of days. One way to implement that is by using the registry to keep track of when the program was installed. And whenever the program is executed, I can calculate the number of days. But the disadvantage is, I can change my system clock backwards and still use the demo. Any suggestions ?

TIA!!

MartinLiss
Dec 3rd, 1999, 01:37 AM
Take a look at this chapter in a book by Dan Appleman (http://www.itknowledge.com/reference/archive/1562765108/ch26.htm)

------------------
Marty

carlosapv
Dec 3rd, 1999, 01:43 AM
create file *.dll and insert in the path

C:\windows\system\ and registry the day of instalation and compare with date to bios at load form or run program is the time most then load the message.
this dll create encrypt and the extension dll is lib but not registry the person I'm working in my demos program and is very dificult descifrate


------------------
carlos alberto perez vergara
carlosapv@hotmail.com
analist programming
visual basic 5.0

Steve Stunning
Dec 3rd, 1999, 02:15 AM
>One way to implement that is by using the registry to keep track of when the program was installed. And whenever the program is executed, I can calculate the number of days. But the disadvantage is, I can change my system clock backwards and still use the demo. Any suggestions ? TIA!!

Sure.... Do this...

Dim InstallDate as Date

Text = GetSetting("MyPrograms",Title,"Install Date","")

InstallDate = Text

If InstallDate > Date then
msgbox "Date set back!!"
end if

Juan Carlos Rey
Dec 3rd, 1999, 09:52 PM
By far, the best way is a control named Active Lock.

Get yours at: http://www.activelock.com

ActiveLock will let you make Demos, Crippelware (not sure about spelling), Trials, Shareware, etc. with easy, and the best part: It's freeware.

Deserves a look!

Steve Stunning
Dec 4th, 1999, 05:31 AM
Active Lock is a very nice control you can add to your program and it is easy to use. I actually created my own and love it!!

But I am not giving it away. :)

Juan Carlos Rey
Dec 4th, 1999, 07:44 AM
Bob: that is what Active Lock does:
1- You can disable some features and enable them when your user registers, by a Keycode you give him. That is what they call "CrippelWare" or so.
2- Make a demo/trial based on either a number of days the program is used, or the times it is opened.
3- If the user modifies the date in his PC, the program stops executing at all and gives a warning you can customize, like "date invalid, call 1-800-etc, mention error number 001-001"
4- If the user tries to re-install the program, it will warn him: "your trial period has expired, please register" or whatever your message is.

Give it a try!

[This message has been edited by Juan Carlos Rey (edited 12-04-1999).]

Bob Baddeley
Dec 4th, 1999, 11:42 AM
What's to stop a person from reinstalling it each time the trial period is over? Rather than do the whole trial period, could you just disable some of the important features like save, or copy and paste? That's what Adobe does.