;	Copyright (c) 1996 Microsoft Corporation  All rights reserved.
;
;	This file is used to INSTALL the Exchange Event Service.
;


;
;	Talking to the Service Manager
;

OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application
CreateKey:MSExchangeES
CloseKey:

;		EventLog(MSExchangeES)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeES
ReplaceExpandString:CategoryMessageFile;%s\res\eventmsg.dll
ReplaceExpandString:EventMessageFile;%s\res\eventmsg.dll
CloseKey:


;Register the DLL's
RegisterDLL:%s\bin\scripto.dll
RegisterDLL:%s\bin\ss.dll
RegisterDLL:%s\bin\esconf.dll
RegisterDLL:%windir%\system32\olemsg32.dll
RegisterDLL:%windir%\system32\vbscript.dll
RegisterDLL:%windir%\system32\jscript.dll
RegisterDLL:%windir%\system32\radrun.dll
RegisterDLL:%windir%\system32\radrunex.dll

; run ccdist.exe to install comcat.dll
CreateProcessSafe:.;ccdist /q;60000
RegisterDLL:%windir%\system32\comcat.dll

;		PerfMon(ES)
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeES\Performance
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeES\Performance
ReplaceString:Close;CloseMsesPerformanceData
ReplaceString:Collect;CollectMsesPerformanceData
ReplaceString:Library;%s\bin\msesperf.dll
ReplaceString:Open;OpenMsesPerformanceData
CloseKey:

CreateProcessSafe:.;unlodctr MSExchangeES;180000
CreateProcess:%srcdir%\bin;lodctr msesperf.ini;360000

;		ServiceManager(ES)
CreateService:MSExchangeES;Microsoft Exchange Event Service;bin\events.exe;MSExchangeIS$

;		Miscellaneous
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateSecureKey:MSExchangeES\Parameters
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeES\Parameters
SetDword:Logging Level;0x0000
SetDword:Worker Threads;0x0001
ReplaceDword:Maximum execution time for scripts in seconds;0x384
CloseKey:

; Cluster registry checkpoint before starting the service
RegistryCheckpoint:MSExchangeES;SYSTEM\CurrentControlSet\Services\MSExchangeES

; Start the Event Service.
StartService:MSExchangeES
