**********************************************************************
; Install Goalline - consetup integration 
;

;**********************************************************************
;       Adding MT to the registry 
;
;               ServiceManager(MS Mail Connector)
CreateServiceManual:MSExchangeMSMI;MS Mail Connector Interchange;connect\msmcon\bin\mt.exe;MSExchangeMTA$Eventlog$

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

OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeMSMI
ReplaceDword:CategoryCount;A
ReplaceExpandString:CategoryMessageFile;%s\connect\msmcon\bin\mtmsg.dll
ReplaceExpandString:EventMessageFile;%s\connect\msmcon\bin\mtmsg.dll
ReplaceDword:TypesSupported;7
CloseKey:

; add new logging model 
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMSMI
CreateKey:Parameters
CreateKey:Diagnostics
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMSMI\Diagnostics
SetDword:1 MSExchangeMSMI;0
SetDword:2 MSExchangePCMTA;0
SetDword:3 MSExchangeATMTA;0
CloseKey:

;               Create the MT software Key
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMSMI\Parameters
SetDword:Max 3.X Compatibility;1
SetDword:IntervalRegular;1
SetDword:IntervalUpdate;F
SetDword:SetResponsibleBit;1
SetDword:CheckMBG;1

;               Create the Admin sub-key
CreateKey:Admin
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMSMI\Parameters\Admin
SetDword:POConfirm;1
SetDword:SendNDRs;1
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeMSMI\Performance
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMSMI\Performance
ReplaceString:Library;%s\connect\msmcon\bin\mtperf.dll
ReplaceString:Open;OpenMTPerformanceData
ReplaceString:Collect;CollectMTPerformanceData
ReplaceString:Close;CloseMTPerformanceData
CloseKey:

CreateProcessSafe:.;unlodctr MSExchangeMSMI;60000
CreateProcess:%srcdir%\connect\msmcon\bin;lodctr mtperf.ini;60000

;**********************************************************************
;       Adding NT External to the registry
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangePCMTA
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangePCMTA
CreateKey:Performance
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangePCMTA\Performance
ReplaceString:Library;%s\connect\msmcon\bin\xtnperf.dll
ReplaceString:Open;OpenXTNPerformanceData
ReplaceString:Collect;CollectXTNPerformanceData
ReplaceString:Close;CloseXTNPerformanceData
CloseKey:

CreateProcessSafe:.;unlodctr MSExchangePCMTA;60000
CreateProcess:%srcdir%\connect\msmcon\bin;lodctr xtnperf.ini;60000

; Cluster adding registry checkpoint 
RegistryCheckpoint:MSExchangeMSMI;SYSTEM\CurrentControlSet\Services\MSExchangeMSMI$

;**********************************************************************
;       Adding FB to the registry 
;
CreateServiceManual:MSExchangeFB;MS Schedule+ Free/Busy Connector;connect\msfbconn\msfbconn.exe;MSExchangeDS$MSExchangeIS$Eventlog$

; demand start for the service
;OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeFB
;SetDword:Start;3
;CloseKey:

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

OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeFB
ReplaceExpandString:CategoryMessageFile;%s\connect\msfbconn\msfbconn.exe
ReplaceExpandString:EventMessageFile;%s\connect\msfbconn\msfbconn.exe
ReplaceDword:TypesSupported;7
CloseKey:

; Cluster adding registry checkpoint 
RegistryCheckpoint:MSExchangeFB;SYSTEM\CurrentControlSet\Services\MSExchangeFB$

;**********************************************************************
;       Misc
;       share out goalline PO
AddShare:.;maildat$;%s\connect\msmcon\maildata;WRITE;"Access for MSMI postoffice"

;end of consetup integration
;**********************************************************************

;Setup for the DXA

;               ServiceManager(DXA)
CreateServiceManual:MSExchangeDX;Microsoft Exchange Directory Synchronization;bin\dxa.exe;MSExchangeMTA$

;               EventLog(DXA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application
CreateKey:MSExchangeDX
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeDX
ReplaceExpandString:EventMessageFile;%s\bin\dxamsg.dll
ReplaceExpandString:CategoryMessageFile;%s\bin\dxamsg.dll
ReplaceDword:CategoryCount;0x0a
ReplaceDword:TypesSupported;0x07
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeDX\Diagnostics
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeDX\Diagnostics
SetDword:1 MSExchangeDX;0x00;
CloseKey:

; Cluster adding registry checkpoint 
RegistryCheckpoint:MSExchangeDX;SYSTEM\CurrentControlSet\Services\MSExchangeDX$

