In order to function correctly the EventSentry agent needs the following:
1) Export a working configuration from another server running the agent and save it to a file. In our example this file will be called ES_AGENT.REG.
2) Copy the following files to a subfolder from where they can be copied during the server setup:
ES_AGENT.REG
eventsentry_svc.exe
eventsentry_msg.dll
3) Create a script file that runs the following commands (or execute the commands one-by-one from a command line):
regedit.exe /s ES_AGENT.REG
copy eventsentry_svc.exe %SYSTEMROOT%\system32\
copy eventsentry_msg.dll %SYSTEMROOT%\system32\
cd %SYSTEMROOT%\system32
eventsentry_svc.exe /install
net start EventSentry
4) Configure this script file to be run during your setup