if
(
exists true whose
(
if true then
(
exists main gather service
)
else false
)
)
then
(
if
(
version of client >= "8.0"
)
then
(
version of main gather service as string
)
else
(
version of file
(
(
if
(
character 0 of it = "%22"
)
then
(
substring between "%22" of it
)
else it
)
of image path of main gather service
)
as string
)
)
else "Not Installed"
if (exists true whose(if true then(exists main gather service)else false)) then (if (version of client >= "8.0") then (version of main gather service as string) else (version of file ((if (character 0 of it = "%22") then (substring between "%22" of it) else it) of image path of main gather service) as string)) else "Not Installed"