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
)
)
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 creation time of file whose
(
name of it contains ".log" AND
(
creation time of it = maximum of creation times of files of parent folder 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 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 file whose (name of it contains ".log" AND (creation time of it = maximum of creation times of files of parent folder 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 creation time of file whose (name of it contains ".log" AND (creation time of it = maximum of creation times of files of parent folder 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 Backups Exist"