Hi, welcome to the forums.

RejZor’s avast! External Control program should make this task easier. No requirement to edit the avast4.ini file.

Check out this thread for lots of options you can set through the avast.ini file. Understanding avast4.ini file