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 files whose
(
name of it contains ".log" AND
(
not 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 maximum of creation times of files whose
(
name of it contains ".log" AND
(
not 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 error-free backups exist"
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 files whose (name of it contains ".log" AND (not 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 maximum of creation times of files whose (name of it contains ".log" AND (not 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 error-free backups exist"