Difference between revisions of "OnGuard"

From Free Pascal wiki
Jump to navigationJump to search
(→‎TODO: CPU serial numbers are inaccessible for most CPUs, and MAC addresses are often used for the purpose)
(→‎Download: Add link to updated, maintained version)
Line 29: Line 29:
 
You can download it  
 
You can download it  
 
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=194373&release_id=425234 here].
 
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=194373&release_id=425234 here].
 +
 +
=== Alternative version ===
 +
The OnGuard package on Sourceforge apparently was last updated somewhere in 2010. Graeme Geldenhuys has forked the code and started to maintain his own version.
 +
 +
Using this version may be a better solution for more recent installs:
 +
[https://github.com/graemeg/onguard]
 +
 +
See also: [http://forum.lazarus.freepascal.org/index.php/topic,23495.msg140693.html#msg140693 this forum message by Graeme]
  
 
=== Change Log ===
 
=== Change Log ===

Revision as of 11:28, 7 March 2014

English (en) português (pt)

About

FPOnGuard is port of Turbo Power OnGuard. OnGuard is a library to create demo versions of your Borland Delphi & Kylix & Free Pascal+Lazarus applications. Create demo versions that are time-limited, feature-limited, limited to a certain number of uses, or limited to a certain # of concurrent network users. You could also protect executable file from modification either by hacker or malware. It works for Windows and Linux also. Check it, it is really a cool thing!

This is a source-only release. It includes package for Lazarus 0.9.16 official installer (and should run fine on later versions too).


The download contains the component package for Lazarus + documentation (pdf and hlp file) and probably all original examples ported to Lazarus.

This component is now designed for cross-platform applications (Windows and Linux-like).Pure Object Pascal. However some parts are heavy system dependant.

TODO

  • Test network usage code (NAF file is not locked?)
  • Better machine ID (based on CPU (mostly unavailable) and HDD physical serial numbers and MAC address for example)
  • Merge it with HASP USB keys support and others (plugin system?)

License

MPL 1.1

Download

You can download it here.

Alternative version

The OnGuard package on Sourceforge apparently was last updated somewhere in 2010. Graeme Geldenhuys has forked the code and started to maintain his own version.

Using this version may be a better solution for more recent installs: [1]

See also: this forum message by Graeme

Change Log

  • Version 1.0 2006/06/16
  • Version 1.0.0.1 2007/11/30: Fixed compilation with fpc 2.2.0 Vincent 14:36, 30 November 2007 (CET)

Dependencies / System Requirements

  • None

Status: Beta

Issues: Needs testing on Windows. Needs testing on Linux. Mostly working ;-) Probably not compatible with original OnGuard due to changes (removed asm code replaced with pascal not strictly the same)

Installation

  • Create the directory lazarus\components\tponguard
  • Ungzip+untar files into the directory
  • Open lazarus
  • Open the package tponguard.lpk with Component/Open package file (.lpk)
  • (Click on Compile only if you don't want to install the component into the IDE)
  • Click on Install

Usage

Read the manual. It's very detailed and contains a lot of samples.