You could always curl the install script, and modify it to run the virus scan in between the build and install steps.