 | AVLock Lite is a component for Delphi 3, 4, 5, 6 and 7 which allow you to convert your application into a time limited trial in a very ease way. |
FEATURES Next are some features and possibilities that AVLock Lite give you. - Make trials with only one line of code.
- Rent your software sending a new Registration Code for each new period.
- Adapt it to any language.
- New look for the registration form that allow you to place your own logo.
- Registration Form more customizable that allow you to offer to your customers several methods to purchase it.
- Now you can to change the back color and font properties from the registration form.
- Customized messages for special status: congratulations while trial evaluation period, warning for shortly expiration and period expired.
- Utilities by generation and manipulation of registration keys.
To make a 30 days trial application you simply must locate an AVLock Lite control into your main form and write the following line of code at the OnCreate event: Â Â Â AvLocklite1.execute; That's enough to convert your application into a full featured 30 days trial application. However, you may use AVLock Lite in several other more powerful ways, creating your own interface or changing the default values of properties to adjust it to your needs. LANGUAGE LOCALIZATION AVLock Lite may be used with your preferred language. All prompts and text messages used onto the registration form and anothers locations of the component reside into the avlocklite.res file. Together with the AVLock Lite component come these resource files: avlocklite_en.rc : Plain text format file with the prompts and messages by english language. avlocklite_sp.rc : Plain text format file with the prompts and messages by spanish language. avlocklite_en.res : Compiled resource file by english language avlocklite_sp.res : Compiled resource file by spanish language You may edit the *.rc file with notepad or your favorite text editor then compile it with Brcc32.exe. as follows : Execute this command line : Brcc32.exe avlocklite_en.rc This will generate the avlocklite_en.res file. Rename it as avlocklite.res and locate it into your component folder. HOW TO PREVENT HACKING With the Resource Hacker utility * it is quite ease to hack any normal exe file compiled with Delphi since all published properties from any component may be easily changed, any event manager deleted and any response to buttons changed. To avoid anyone utilize this chance to crack your application you can take care of the following: - Don't use the events like oncreate or onshow to set properties or call the execute procedure, instead put these into the project (dpr file). See the Demo2 application.
- Leave unchanged all properties from the AVLockLite component at design time, instead assign these programatically into the dpr file. Is very important to assign here an AppCode value different than the default one 123455789. See the Demo2 application.
- Insert into some offten called routines the following lines:
  AVLockLite1.read;   If AVLockLite1.expired then application.terminate; - Compress your final exe file with any exe compressor like UPX * or AsPack *.
* ReSource Hacker is a freeware utility copyright © 1999-2002 Angus Jhonson. UPX is a freeware utility copyright © 1996-2001 Markus Oberhumer & Laszlo Molnar, and AsPack is a shareware utility copyright © 1998-1999 Alexey Solodovnikov. PROPERTIES  AppCode : Type: dword. Numeric value to identify the application. For default his value is 123456789 but is convenient to assign different codes for each application. AppName : Type: string. Name assigned to your application. this appear in the title bar of the registration windows. For default this is leave blank. Authorized : Type: boolean. (runtime). If true, this mean the application is temporarily registered. BeginDate : Type: boolean. (runtime) Date from which start the current authorized period. ColorForm : Type: TColor. The background color of the Registration form. Default clBtnFace. Company : Type: string. (runtime) Company of the registered user. Days : Type: word. The number of days of authorized use. 30 for default. EndDate : Type: date. (runtime) Date where finish the authorized period. EmailAddress : Type: string. Email address to send you the purchase information. Expired : Type: boolean. (runtime) When it is True, this mean that trial/authorized period was expired. FirstTime : Type: boolean. (runtime) If true, this mean the application run at first time on the computer. Font : Type: TFont Font by text on the registration form. InstallCode :Type: string; Length: 4. (runtime) Hexadecimal Strig Value, not visible at design time. When your application run on the user PCs, AVLock Lite calculate a hexadecimal number called INSTALL CODE, distinct one for each PC and calculated in basis of the BIOS serial number. This code must be sent to you from the users so you can generate with KeyGen.exe the appropriate REGISTRATION CODE for each user. For more information see below the description for the keyGen.Exe utility. Logo : Type: TBitmap. This property allow you to place your own logo on the registration form. OnlineLink: Type: string. URL to your seller website. RegistrationWays : Type: set of (rwOnline, rwEmail, rwOther). This property allow you to expose at the registration form the selling method more suitable to your needs. The options can be: a) rwOnline: to link with your seller website according with the value assigned to the OnlineLink property. b) rwEmail: to send an email to the email address assigned to the EmailAddress property, and b) rwOther: to show text for another method to purchase your product. The default text said "Another way" but you can change it editing the *.rc resource file and recompile it with Brcc32.exe, rename the compiled *.res file to avlockgold.res and locate it on the component directory replacing the older one. Registered : Type: boolean. (runtime) If True, then the application is permanently registered.  METHODS DoExecute: function DoExecute: boolean; This method show the built-in registration form. You can call it to invoque the registration form in any location of your application. The Execute method call it to show the registration form. This function return true if the user press the Continue button or successfully register a Registration Key. For more details about how to use it see the Demo1 and Demo2 applications. Execute : procedure Execute; This method is intended to make all functions needed to convert your program into a trial time limited application. When this run by first time onto the user computer initialize the Registration data according to the BeginDate and Days properties. This procedure check the registration status; if the application is not registered yet then bring up the Registration Form allowing to the user the instance of register your application, if the status is expired then the continue button is disabled so the user is forced to register or cancel the application. For more details about how to use it see the Demo1 and Demo2 applications. Read This method read the registration data from the Windows registry to the properties of the component. Clear This method clear all properties in the component. Erase This method erase the registration data in the Windows registry, therefore the application become trial. WriteLastDate : procedure WriteLastDate; This method write the last system date into the Registration date. This procedure is called for the Execute method, this allow take track of the last date the application has been executed for the user, so if the user backward the system date and the AllowBackDate property is false then the application become expired.  UTILITIES Keygen.exe : This utility allow you to generate the registration codes that your users will need to register the application in his machine. Into these codes come all data needed to establish the appropriate values for the AVLock Lite component into the target application. In order to generate the registration keys follow these steps: Into the "Kind of registration" section select first between two possible kinds of registration codes: - Temporary: This mean that the appliccation is authorized in a limited period of time bounded between two dates who are stored in the BeginDate and EndDate properties. This allow you to rent your application, since through of registration codes you can habilitate new authorized periods as many times as you likes.
- Permanent : This mean that the application is definitively registered without time limit.
Then enter the following two values: - Instalcode: Enter here the install code received from you user.
- AppCode: enter Here the appCode that you was chose for your application.
Then press the "Generate button" to generate the registration code with all data entered above which will be displayed into the "Registration Code" box. Please send it to your user.
Unregister.exe : this allow you to erase all registration datra saved into the Windows registry. The next time that your application execute this will become trial like the first time you ran it. Â FINALLY The package includes two demo aplications Demo1 and Demo2. Please download a free copy from the Download page or purchase a commercial edition YOUR COLLABORATION We encourage you to collaborate in the project, all suggestions or bug reports will be welcome. Please contact us.
|