Click to See Complete Forum and Search --> : I want to add copy protection to my SW


jho
February 27th, 2001, 01:39 PM
Hi! I would like to know how to add some kind of key/serial number to prevent other people installing our product. I would like to do something like the Microsoft apps, where you put in a serial at installation time. We have got installsheild too, I am not sure if there is a built in key feature for this? If not can someone point me out to some more info about this?

I have tried to search the net with the keyword "serial number", of course not very useful link comes up :)

theviper
April 26th, 2001, 08:13 PM
Yes, with InstallShield there is a Custom Action where you can call EXE or DLL function to check the serial number... (note: InstallShield distribute a sample called ValidateSerialNumber wrote in C++)
Hi....

C++ Seeker
April 26th, 2001, 10:04 PM
Hey! do u know how to add shareware registration function to programs? If so, please reply, and if there'sa need, I'll pay u $$$.

C++ Seeker
April 26th, 2001, 10:11 PM
do u know where I can find this sample? Can't find it anywhere in my PC!!!

kbomb987
April 27th, 2001, 09:52 AM
Yes, you just include some way of storing a date/time or number of program runs to disk. I prefer to store the value in the registry though, and encrypted. Then have your program check that value at run-time to determine if the program can still run or not.

As for using an install-time serial code or registration code. I have the following method:

1. User enters a registration code in software.
2. Software contacts a CGI script on a web server and passes it the registration code to verify.
3. Server script checks its own data files to see if the registration code exists and is not already used.
4. Server passes back OK to software.
5. Software passes back OK to user.

Like that. I'd be happy to write something for you if you still need help, just contact me kory@dummysoftware.com

Easy Internet Software @
http://www.DummySoftware.com