Why not read the help and make yourself familiar with the options Avast is offering the user?
Only thing you have to do is set Avast to run in silent mode.