Table of contents
What is AVLock Lite?
AVLock Lite is a Delphi component wich allow you to convert your application into a time limited trial in a very ease way. Besides, with AVLock Lite you can:
To make a 30 days trial application you simply must locate an AVLock Lite control in your main form and to write the following line of code at the OnCreate event:
AvLocklite1.execute;
That's enough to convert the application in a 30 days trial. However, you can to use AVLock Lite in several other more powerful ways, making your own interface or changing the default values of properties to adjust it to your needs.
How to adapt AVLock Lite to any language? All prompts and text messages used onto the registration form and anothers locations of the component reside into the avlockgold.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.
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:
1. Don't utilize the event manager by events like oncreate or onshow to set properties or call the execute procedure, instead put it into the project (dpr file). See the Demo2 application.
2. 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 123455789 (the default value). See the Demo2 application.
3. Insert into some offten called routines the following lines:
AVLockLite1.read;
If AVLockLite1.expired then application.terminate;
4. 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.
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.
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.Keygen.exe : This utility allow to generate the registration codes that your users 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 in the target application.
Kind of registration: You can to generate two kind of registration codes:
1) 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.
2) Permanent : This mean that the application is definitively registered without time limit.
Modules: With AVLock Lite you can enable/disable up to 8 modules in the target application. To generate te apropiate registration code you simply must check/uncheck the appropriate check boxes.
Instalcode: Enter here the install code received from you user.
AppCode: enter Here the appCode that you was chose for your application.
Generate button: press this button to generate the registration code with all data entered above.
registration Code: this is the registration code that you must send to your user.
Unregister.exe : this allow erase in the Windows registry the saved registrationg information and the next time that your application execute this become trial.
The Demo application show how to make an application trial with only one line of code.
How to Purchase AVLock Lite.
There is two different versions of Avlock Lite:
1. The Standard Version: (without sources). This include pack's for 4, 5, 6 and 7 versions of Delphi. The KeyGen and Unregister utilities and demo applications. This package is very similar to the freeware one with the only difference that the ad image on the registration form has been removed and you have the rigth of use it on commercial applications. Buy Now
2. The Developer Version: (all souces included). This have all included on the standard version plus the sources for the AVLock Lite component, the KeyGen and Unregister utilities. Buy Now
How to Upgrade from the standard version to the developer version.
You only pay the difference, please email me to avalega@bigfoot.com
AVLock Lite Software License Agreement.
BEFORE PROCEEDING WITH THE INSTALLATION AND/OR USE OF THIS SOFTWARE, CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT AND LIMITED WARRANTY (The "Agreement").
BY INSTALLING OR USING THIS SOFTWARE YOU INDICATE YOUR ACCEPTANCE OF THIS AGREEMENT. IF YOU DO NOT ACCEPT OR AGREE WITH THESE TERMS, YOU MAY NOT INSTALL OR USE THIS SOFTWARE !
AVLock Lite Software, including documentation, source code, object code and/or additional materials (the "Software") is owned by Alcides Valega (the "Author"). This Agreement does not provide you with title or ownership of Product, but only a right of limited use as outlined in this license agreement. Software author hereby grant you a non-exclusive, royalty free license to use the Software.
You are granted a non-exclusive, royalty-free right to reproduce and redistribute executable files created using the Software (the "Executable Code") in conjunction with software products that you develop and/or market (the "Applications").
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PRODUCT IS WITH YOU. SHOULD THE PRODUCT PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING OR ERROR CORRECTION.
THE AUTHOR OF AVLock Lite DO NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE.
----------------------------------------------------------------------------------------------------------------
If you have any questions regarding this agreement, or you have any comments, suggestions or bug-reports, please forward it to: avalega@bigfoot.com
Author : Alcides Valega
Address : Santa Cruz 1468, 3400-Corrientes, Argentina
E-mail : avalega@bigfoot.com
URL : http://avsoft.sitio.net