You can’t install avast in safemode. I suggest you get (and run) Farbar and attach the logs to your next post. Let’s see if there perhaps is something that is causing the problem.