(
(
exists running service "BESRootServer"
)
AND
(
(
it < "8.2.1312.0" AND it >= "7.0.1"
)
of
(
if
(
version of client >= "8.0"
)
then version of service "BESRootServer" else version of file
(
(
if
(
character 0 of it = "%22"
)
then
(
substring between "%22" of it
)
else it
)
of image path of service "BESRootServer"
)
)
)
)
OR
(
exists regapp "BESConsole.exe" whose
(
version of it < "8.2.1312.0" AND version of it >= "6"
)
)
((exists running service "BESRootServer") AND ((it < "8.2.1312.0" AND it >= "7.0.1") of (if (version of client >= "8.0") then version of service "BESRootServer" else version of file ((if (character 0 of it = "%22") then (substring between "%22" of it) else it) of image path of service "BESRootServer")))) OR (exists regapp "BESConsole.exe" whose (version of it < "8.2.1312.0" AND version of it >= "6"))