AVLock Pro (c) Alcides Valega, 2002
AVLock Pro is a Delphi component wich allow you to convert your application into a time limited trial in a very ease way. In adittion, with AVLock Pro you can:
To make a 30 days trial application you simply must locate an AVLock Pro control in your main form and to write the following line of code at the OnCreate event:
if not AvLockpro1.execute then Application.Terminate;
That's enough to convert the application in a 30 days trial version. However, you can to use AVLock Pro in several other more powerful ways, making your own interface or changing the default values of properties to adjust it to your needs.
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. When it is True, this mean that application is temporarily registered.
BeginDate : Type: boolean. Date from where start the authorized period.
ColorForm : Type: TColor. The background color of the Registration form. Default clBtnFace.
Days : Type: word. The number of days of authorized use. 30 for default.
Expired : Type: boolean. When it is True, this mean that trial time was expired.
EndDate : Type: date. Date from where end the authorized period.
FirstTime : Type: boolean. When it is True, this mean that application run first time in the computer.
InstalCode :Type: string; Length: 8. Hexadecimal Strig Value, not visible at design time. When your application run in the user PCs, AVLock Pro calculate a hexadecimal number called INSTAL CODE, distinct one for each PC and calculated in basis of the BIOS serial number. This code must be send to you from the users so you can generate with KeyGen.exe the apropiate REGISTRATION CODE for each user. For more information see below the description for the keyGen.Exe utility.
InstalCodeSources : Type: set. This property allow to determine from where come the value of the InstalCode property. These sources can be chosen (one or more) between these ones: Bios_SN (The serial Number from the Bios), CPU_ID (a code from the CPU), HD_SN (The Hard Disk Serial Number), RandomNumber (a random number generated at first time your app run and stored in the Windows registry).
MaxDays : Type: word. The max number of days allowed for the Days property.
m1..m8 : Type: boolean. These 8 Boolean properties allow enable/disable up to 8 modules in your application.
Module[n]Text : Type: string. Here you can write your own descriptions for the modules.
Prompts properties : Type: string. This properties allow you customize and adapt the component to any language, these are: PromptBeforeExpire, PromptAfterExpire, PromptInstallCode1, PromptInstallCode2, PromptRegCode1, PromptRegCode2, PromptBtnReg, PromptBtnCancel, PromptBtnContinue, PromptSuccessfull and PromptInvalidCode.
Registered : Type: boolean. When it is True, this mean that application is registered.
Showmodules : Type: boolean. If True then the modules information will be included in the register form. Default True.
Check : function Check(RCode:string):boolean; This method return true if the Registration code pased as parameter is ok.
Clear : procedure Clear; This method clear all properties in the component.
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 and return true if the user was pressed the Continue button and the application is registered or it is into the trial period, for more details about how to use it see the Demo1 sample.
Execute : function Execute:boolean
This method see in the registry data if this is the first time that application run in the computer, if so, initialize the registry data establishing the trial period according to the Days property. Then, if the application is inot registered yet, call the DoExecute method to show the registration form. Return true if the user was pressed the Continue button and the application is registered or it is into the trial period, for more details about how to use it see the Demo1 sample.
Erase : function EraseReg:boolean; This method erase the registration data in the Windows registry, therefore the application become trial.
Make: function Make(reg:integer): string;
This method return a registration key in basis of the properties values. For reg = 0 create a trial registration code, if reg = 1 then create a permanent registration code, if reg = 2 then create a temporary registration code.
Read : procedure Read; This method read the registration data from the Windows registry to the properties of the component.
Write : procedure Write(RCode:string); This method write the Registration code pased in the RCode parameter to the Windows registry.
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 Pro 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 Pro 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.
Demo1 : This show how to make an application trial in the standard way, with only one line of code.
Demo2 : This show how to make an application trial in an advanced way, with a customizad registration form.
1. Unzip the component zip file into a folder.
2. From your Delphi IDE open the AVLockProD(x).dpk package.
3. If you get the message "This package appears to be in an older format. Wold you like to convert it to the new format?" then reply No.
4. Press the install button. Wait for the Delphi message "The following new commponent(s) have been registered:. . ."
4. Review your Library Path into the Tools|Environment Options|Library tab. Here you should have one entry (only one) pointing to te folder where you unziped the component. If you have not this entry then create it manually.
Click here to purchase the commercial version of AVLock Pro at $29.95
Click here to purchase the full pack with source code at $59.90
How to Upgrade from the commercial version to the full pack with sources.
You can uprade from the commercial version to the full pack with sources purchasing again the commercial version at $29.95. If you do it then email me to avalega@bigfoot.com and I will send to you via email the full pack with sources.
AVLock Pro 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 Pro 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 Pro 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