;---------------------------------------------------------------------
;   Install ccMail Connector
;---------------------------------------------------------------------

;---------------------------------------------------------------------
;       Adding MSExchangeCCMC to the registry 
;
;               Service name: Microsoft Exchange cc:Mail Connector
;---------------------------------------------------------------------
CreateServiceManual:MSExchangeCCMC;Microsoft Exchange Connector for Lotus cc:Mail;connect\ccMail\bin\ccmc.exe;MSExchangeDS$MSExchangeIS$Eventlog$

;---------------------------------------------------------------------
;   Event log for this service
;---------------------------------------------------------------------
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application
CreateKey:MSExchangeCCMC
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeCCMC
ReplaceDword:CategoryCount;9
ReplaceExpandString:CategoryMessageFile;%s\res\ccmsg.dll
ReplaceExpandString:EventMessageFile;%s\res\ccmsg.dll
ReplaceDword:TypesSupported;7
CloseKey:


;---------------------------------------------------------------------
; logging 
;---------------------------------------------------------------------
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeCCMC
SetString:DiagnosticsMessageFile;ccmsg.dll
CreateKey:Diagnostics
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeCCMC\Diagnostics
SetDword:1 General;0
SetDword:2 Outbound;0
SetDword:3 Inbound;0
SetDword:4 NDR;0
SetDword:5 Dir Synch;0
SetDword:6 MAPI;0
CloseKey:

;---------------------------------------------------------------------
; parameters
;---------------------------------------------------------------------
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeCCMC
CreateKey:Parameters
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeCCMC\Parameters
SetString:Connector Store Path;%s\CCMCData
SetDword:Exchange to cc:Mail queue size;40
SetDword:cc:Mail to Exchange queue size;40
SetDword:Outbound Conversion threads;2
SetDword:Inbound Conversion threads;2
SetDword:Maximum number of messages to EXPORT;10
SetDword:Maximum number of messages to IMPORT;5
SetString:Export command line;/ITEMSIZE /FORMAT/FAN /BATCH /FILES/MACBIN2
SetString:Import command line;/ITEMSIZE /PARTIAL /BATCH /FILES/MACBIN2
SetString:Dir Synch export command line;/DIRECTORY/L/R/A/P /FORMAT/NOFAN /BATCH
SetString:Dir Synch export ML command line;/LIST /BATCH
SetString:Dir Synch export BB command line;/BBOARD /LIST /BATCH
SetString:Dir Synch import command line;/DIRECTORY/PROP /BATCH
SetString:Dir Synch alias name rule;%%F%%1L
SetString:Dir Synch display name rule;%%F %%L
SetDword:Save a copy of the exported files;0
SetDword:Save a copy of the imported files;0
SetDword:Always delete IMPORT/EXPORT output;1
SetDword:Seconds to wait before Export;F
SetDword:Seconds to wait before Import;F
SetString:cc:Mail Admin file path;
SetString:Export.exe;Export.exe
SetString:Import.exe;Import.exe
SetDword:Mutually Exclude IMPORT and EXPORT;1
SetDword:Maximum Number of Exceptions before shutdown;19
SetDword:Use Registry settings;0
SetDword:FixedWidthFont;0
SetDword:Tab Length;5
SetDword:Locale Date Format;0

; QFE 25944 : generate both non-normalized primary proxy and a normalized secondary proxy
SetDword:Generate secondary proxy;0

CloseKey:


;---------------------------------------------------------------------
; performance
;---------------------------------------------------------------------
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeCCMC\Performance
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeCCMC\Performance
ReplaceString:Library;%s\connect\ccMail\bin\ccmcperf.dll
ReplaceString:Open;OpenCCMCPerformanceData
ReplaceString:Collect;CollectCCMCPerformanceData
ReplaceString:Close;CloseCCMCPerformanceData
CloseKey:

CreateProcessSafe:.;unlodctr MSExchangeCCMC;60000
CreateProcess:%s\connect\ccMail\bin;lodctr ccmcperf.ini;60000

;---------------------------------------------------------------------
;end of MSExchangeCCMC setup script
;---------------------------------------------------------------------
