Two different connections… LAN and Internet.

You can delay the avast running on the logon. Not only the ashDisp.exe (the icon) but you have to manage the Windows services:
To this, you can try Startup Delayer that controls the windows startup (Windows 98\Me\2k\XP) that does not follow a strict order.

Only when connected to the Internet?
Well, try NetRun. It will run a list of programs only when a internet connection is detected, and close/kill the same ‘list’ when the connection is lost. When I upgraded my machine to XP, the program that I was using stop working so I was forced to write this program.

  • Tray based & Quiet (no splash or nags)
  • Easy Drag & Drop setup
  • Quicker bootups
  • Internet detect via IP method
  • Supports Windows XP
  • Re-Run on re-connect
  • Small demand on system resources
  • Can set to auto-start with current user
  • FREE for all!

You can download the Beta Version (1.2.1.3). It’s stable and functional:
http://www.home.earthlink.net/~czarsoft/NetRunSetup.exe