Microsoft KB Archive/279764

= PRB: Multiple &quot;System Files Are Out of Date&quot; Errors When You Install Visual Basic 6.0 Application on Windows 2000-based Computer =

PSS ID Number: 279764

Article Last Modified on 7/26/2001

-

The information in this article applies to:


 * Microsoft Visual Basic Professional Edition for Windows 6.0
 * Microsoft Visual Basic Enterprise Edition for Windows 6.0

-



This article was previously published under Q279764



SYMPTOMS
When you install a Microsoft Visual Basic version 6.0 application that was created with the Package and Deployment Wizard onto a computer that is running Microsoft Windows 2000, you may receive the following error message:

Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now. You will need to restart Windows before you can run setup again. Click cancel to exit setup without updating system files.

After Windows 2000 restarts and you begin the installation again, you receive the error message again.



CAUSE
The Package and Deployment Wizard uses a restart to update in-use system files. In Windows 2000, system files are protected and are not updated on the restart. Each subsequent attempt to install the application results in the same error message, and the application cannot complete its installation.

The normal procedure to update Windows 2000 system files is to install the latest service pack. However, in certain situations, the development computer may contain specific system files that have a later version number than those found on Windows 2000. For example, if the setup package was created on a Windows Millennium Edition (Me)-based system or a Windows 2000-based system with a service pack that is later than the target, the PDW may package a higher version than is on the target Windows 2000 system. When this happens, the application setup detects that it needs to install the new system files, and it prompts you to restart the computer. Because Windows 2000 does not allow application installations to replace system files, the application setup detects the old system files again when it restarts.

The file that causes this problem is Oleaut32.dll.



RESOLUTION
There are two ways to resolve this problem:
 * Use a Windows 2000 Service Pack to update the version of Oleaut32.dll on the target computer to one that is equal to or later than the version of the Oleaut32.dll file in the package.
 * Include a version of Oleaut32.dll in the package that is equal to or earlier than the version that shipped with Windows 2000. One way to accomplish this is to install Visual Studio 6.0 Service Pack 4 (SP4) or later. Visual Studio 6.0 SP4 installs three files (Olepro32.dll, Oleaut32.dll, and Stdole2.tlb) in the Redist folder. The file versions that SP4 installs are earlier than the versions that shipped with Windows 2000. The Package and Deployment Wizard then distributes the Oleaut32.dll from the Redist folder instead of the System folder.

