In addition to updating XP to the most up-to-date updates before installing the latest stable avast version (currently 6.0.1367), you should have a backup of your avast license file, so to make it easier to add it again later.