PRB: InstallColorProfile Function Does Not Replace Existing Files (305701)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0
  • Microsoft Windows XP Professional
  • the operating system: Microsoft Windows XP 64-Bit Edition

This article was previously published under Q305701

SYMPTOMS

The InstallColorProfile function does not copy the specified source profile into the system color directory if a file of the same name already exists in the system color directory, even if the existing profile was first uninstalled. InstallColorProfile returns an indication of success in this case, even though the new profile was not copied.

The behavior occurs on Microsoft Windows 98, Microsoft Windows Millennium Edition (Me), Microsoft Windows 2000, and Microsoft Windows XP-based systems.

RESOLUTION

To work around this issue, delete, move, or rename the old profile before you install the new profile.

To successfully delete the old profile, specify TRUE as the last parameter to the UninstallColorProfile function when you uninstall the old profile.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Microsoft is researching this bug and will post new information as it becomes available.

Modification Type:MinorLast Reviewed:5/17/2006
Keywords:kbDSWGDI2003Swept kbprb KB305701