When you installed XP was it XP SP3? If not, did you update XP to XP SP3 before attempting to install Avast?
If not then you might want to make sure that XP is fulling updated all through SP3 and beyond before trying to install Avast 6.x.