###############################################################################
#
# Open iT Patch definition
#

# Stop server
stop
{
	error=warning
	module=server
}

# Wait for all previously signalled programs to stop
waitstop
{
	error=fatal
	timeout=60
	kill=no
}

# Back up configuration file before modifying it
backup
{
	error=fatal
	source=%confdir%/Components/LogMessages/daft.mess
}

# Install binaries
install
{
	error=fatal
	condition=openitversion >= 6020000
	source=bin/openit_filtrator.exe
	target=%installdir%/bin/openit_filtrator.exe
}

install
{
	error=fatal
	condition=openitversion >= 6020000
	source=bin/openit_archiver.exe
	target=%installdir%/bin/openit_archiver.exe
}

install
{
	error=warning
	source=conf/daft.mess
	target=%installdir%/Configuration/LogMessages/daft.mess
}

# Start server
start
{
	error=warning
	module=server
}