TProgramCheck ============= Freeware version 1.0 - Dec 6, 1996 Copyright (c) 1996, Fabrice Deville Recompiled for Delphi 3 by Marcus Mönnig March 1998 ---------------------------------------------------------------------------- CONTENTS ======== 1. Target platforms 2. Description 3a. Installation (Delphi 2) 3b. Installation (Delphi 3) 4. Properties 5. Events 6. Procedures 7. Legal stuff 8. History 9. Questions & Answers 10. Known bugs & problems 11. More informations 12. Other products 13. Contact ---------------------------------------------------------------------------- 1. Target platforms =================== Delphi 2 & Delphi 3 2. Description ============== TProgramCheck is a component that can check the executable at startup and detect any modification. Useful to protect against virus modification of copy errors. It is made of two parts: - the component: to be dropped on the main form. - the stamp application: processes the executable before shipping. If everything goes right, you should never have to worry about the component. However, if a virus modifies the file, or a copy error corrupts it, your customer will be impressed by the care you give to your application! 3a. Installation (Delphi 2) =============== TO INSTALL THE COMPONENT ------------------------ A. Choose the Install option from the component menu. B. Press the Add Button C. Select PGMCHECK.DCU changing the path if necessary. Make sure you select the Delphi 2 compiled version of this file. D. Press OK twice. E. The component is now installed in a new 'Freeware' tab. TO INSTALL THE HELP FILE ------------------------ A. Copy PGMCHECK.KWF to C:\DELPHI\HELP. B. Copy PGMCHECK.HLP to C:\DELPHI\BIN. C. Run HelpInst from your Delphi folder. D. Use File|Open to open C:\DELPHI\BIN\DELPHI.HDX. E. Use Keywords|Add Keyword File to add C:\DELPHI\HELP\PGMCHECK.KWF. F. Use File|Save to Compile and save the new HDX file. G. Online help is now installed. 3b. Installation (Delphi 3) =============== TO INSTALL THE COMPONENT ------------------------ A. Choose the Install option from the component menu. B. Press the Browse Button C. Select PGMCHECK.DCU changing the path if necessary. Make sure you select the Delphi 3 compiled version of this file. D. Select the package you would like to add the component to. E. Press OK. F. The selected package will be rebuild and the component is then installed in a new 'Freeware' tab. 4. Properties ============= - Active (Yes/No): activates the check. Set it to false during development, then activate it before the final build. - AutoCheck (Yes/No): check if performed automatically at program startup. 5. Events ========= - OnCheckError: called if the component detected a modification. You can there take any action that you find useful: - close the program after displaying an error message; - call your ftp site to download a correct version :) - self-repair the executable by copying from a backup :) If the event is left undefined, by default is displays an error message and terminates the application. 6. Procedures ============= - Check: to be called if you set AutoCheck to false. Checks the executable and calls your event handler if an error is detected, or issue an error message and terminates the application. 7. Legal stuff ============== WARNING! THE CODE IS PROVIDED AS IS WITH NO GUARANTEES OF ANY KIND! USE THIS AT YOUR OWN RISK - YOU ARE THE ONLY PERSON RESPONSIBLE FOR ANY DAMAGE THIS CODE MAY CAUSE - YOU HAVE BEEN WARNED! 8. History ========== - Nov 24, 1996 - VERSION 1.0 BETA RELEASED - March 1998 - DELPHI 3 COMPILED VERSION RELEASED 9. Questions & Answers ====================== Q. How does it work? A. It works by computing the crc of the executable, skipping an area where stamp.exe stores the precomputed crc, then checking the two. Q. How do I verify that it works ? A. Simply type echo "something" >>myprogram.exe, then try to execute it, or use a hex editor to modify a byte in the program. 10. Known bugs & problems ======================== None at the moment :) 11. More informations ==================== This component is FREEWARE. Report any problems to: fdev@tornado.be !! Before submitting any bug found, please take the time to check for the latest version at http://users.skynet.be/delphinarium/ 12. Other products ================== TExplorerButton v2.4 : comprehensive IE3-style button. 13. Contact =========== Snail-mail: Fabrice DEVILLE Sur le Mont, 29 B-5363 EMPTINNE BELGIUM E-mail: fdev@tornado.be Homepage: http://users.skynet.be/delphinarium/ ------------------------- --------------------