Microsoft Knowledge Base Article 887411 contains the following summary:

This article describes how the Microsoft Windows XP Service Pack 2 (SP2) Setup program determines whether a device driver will be upgraded.