Run the avi through GSpot to determine which codec the avi file uses. Then download the codec. Or you could try installing ffdshow (the alpha builds are fine) since it can decode Xvid, DivX, etc.
If you receive an error message – Windows Media Player encountered a problem while playing the file, when you try to play AVI, WAV, MOV, etc., you need to install ...