5. To install


These have been tested on WinNT4 SP3 and above. It should normally work on Win 2K, but this have not been tested properly yet.

To install LogAgent, you have two options:

1) Download the freeware version installation package at http://iquebec.ifrance.com/securit/download.html (or purchase the full version);

or

2) Installing it manually from the source code displayed below.

In the case of 1), simply download the file and execute it on the machine you want to install it on. This file will copy 4 files in your \Winnt directory (logagent21.exe, logagent21.lnk, mondir.txt, config.txt), plus 1 file in \winnt\system32 (advnotify.dll). It will also add a key in HKLocalMachine\Software\Microsoft\Windows\CurrentVersion\Run to enable LogAgent at each startup. Before starting LogAgent, you have to configure it using the files mondir.txt and config.txt in \winnt. If the config files point to a directory that is not existing, it will refuse to work.

In the case of 2), first of all you need a copy of Perl installed, I suggest ActivePerl from www.activestate.com (it's free) if you don't already have one. Then, you have to download the Win32API and AdvNotify perl modules and install them. If you can't find these two modules froma Google Search or from the website displayed in the code comments, you can download them at http://www.geocities.com/floydian_99/Win32-AdvNotify.tar.gz and http://www.geocities.com/floydian_99/Win32-API-0.20.zip. Once unzipped, go to the directory containing the files and type 'ppm install win32-api.ppd' and 'ppm install advnotify.ppd'. Once this is done, you may want to change the $DLLPath variable in AdvNotify.pm as discussed in the previous chapter (do not forget to copy advnotify.dll to the \winnt\system32\ directory).

Now, copy the source code presented in chapter 6 and save it in a file called logagent.pl. Create the configuration files config.txt and mondir.txt as shown in chapters 7 and 8, and place these files in the same folder as logagent.pl. Then, you only have to execute logagent.pl, or alternatively compile it with perl2exe.exe to produce logagent.exe. To make it start automatically at each boot, you can put a shortcut in the Startup folder, or create a key in HKLocalMachine\Software\Microsoft\Windows\CurrentVersion\Run.

4. Known issues
6. Source code

Table of contents

Hosted by www.Geocities.ws

1