@echo off

chdir %~dp0

echo "Install... Firebird Server"
chdir fdb\bin
call install.bat
chdir ..\..\

@ping 127.0.0.1 -n 3 -w 1000 > nul

echo "Install... FastMsg Httpd"
chdir httpd\bin
call install.bat
chdir ..\..\

@ping 127.0.0.1 -n 3 -w 1000 > nul

echo "Install... FastMsg Server"
chdir Bin
call install.bat
chdir ..\

@ping 127.0.0.1 -n 5 -w 1000 > nul

start bin\servermanager.exe

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "servermanager" /d "%~dp0bin\servermanager.exe /s" /f