if exists folder
(
value "InstallLocation" of key whose
(
value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase
)
of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs"
)
AND exists file whose
(
name of it contains ".log" AND
(
creation time of it = maximum of creation times of files of parent folder of it
)
AND
(
exists lines whose
(
it contains " avtar Info <6149>: Error summary: "
)
of it
)
)
of folder
(
value "InstallLocation" of key whose
(
value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase
)
of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs"
)
then
(
following text of first " avtar Info <6149>: Error summary: " of line whose
(
it contains " avtar Info <6149>: Error summary: "
)
of file whose
(
name of it contains ".log" AND
(
creation time of it = maximum of creation times of files of parent folder of it
)
AND
(
exists lines whose
(
it contains " avtar Info <6149>: Error summary: "
)
of it
)
)
of folder
(
value "InstallLocation" of key whose
(
value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase
)
of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs"
)
as string
)
else "No Errors"
if exists folder (value "InstallLocation" of key whose (value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase) of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs") AND exists file whose (name of it contains ".log" AND (creation time of it = maximum of creation times of files of parent folder of it) AND (exists lines whose (it contains " avtar Info <6149>: Error summary: ") of it)) of folder (value "InstallLocation" of key whose (value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase) of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs") then (following text of first " avtar Info <6149>: Error summary: " of line whose (it contains " avtar Info <6149>: Error summary: ") of file whose (name of it contains ".log" AND (creation time of it = maximum of creation times of files of parent folder of it) AND (exists lines whose (it contains " avtar Info <6149>: Error summary: ") of it)) of folder (value "InstallLocation" of key whose (value "DisplayName" of it as string as lowercase contains "EMC Avamar" as lowercase) of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry as string & "var\clientlogs") as string) else "No Errors"