Avast doesn't delete autonomously as such, it alerts to issues, e.g. malware found/suspect file.
Even if there was an Avast Alert, that installation file/program should still be there until you decide on a course of action, send to quarantine, delete, etc.
In which case it wouldn't let you install anything (which presumably it has allowed).