Article ID: 831491 - Last Review: January 22, 2007 - Revision: 5.0 You receive multiple "System files are out of date" error messages when you install a Visual Basic 6.0 application
On This PageSYMPTOMSWhen you install a Microsoft Visual Basic 6.0 application that you package by using the Package and Deployment Wizard on a computer that is running Microsoft Windows 2000, Windows XP, or Windows Server 2003, you 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. CAUSE
This problem occurs when the setup package tries to install a newer version of a file that is protected by the Windows File Protection feature on the operating system. For example, if the setup package was built on a computer that is running Windows Server 2003 and the setup package includes a file that is protected by the Windows File Protection feature, this problem occurs on computers that have an older version of the same file and that are running Windows XP or Windows 2000.
When the Setup program installs the setup package, the Setup program compares the version of the file that is already on the operating system with the version of the file that is included in the setup package. If the file that is included in the setup package is newer than the file that is already on the operating system, the Setup program replaces the version of the file that is on the operating system and then prompts you with the message that the Setup program must restart the computer. After the file is replaced, the Windows File Protection feature detects that the file has been replaced and then reverts the file back to the original version. After the Setup program reboots and then runs Setup.exe again, the cycle repeats. RESOLUTION
To resolve this problem, verify that the setup package does not redistribute system files that are newer than the files on the target operating system. To do this, use the following procedures. Apply the latest Visual Basic 6.0 service packApply the latest Visual Basic 6.0 service pack on the build computer. Beginning with Visual Basic 6.0 Service Pack 4, older versions of required system files are located in the Redist folder on the build computer. When the Package and Deployment Wizard assembles a package, it searches the Redist folder first for dependencies. Therefore, new package builds use the older versions of the required system files that are located in the Redist folder. This way, the package distributes newer versions of the required system files. The Redist folder is in the following location:C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Redist To obtain the latest Visual Basic 6.0 service pack, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/vstudio/aa718364.aspx
(http://msdn2.microsoft.com/en-us/vstudio/aa718364.aspx)
Remove the commonly redistributed system files from the setup packageMake sure that your setup package does not redistribute unnecessary system files. Every Visual Basic 6.0 application requires that the following OLE Automation system files be installed to function. These files should be installed with the setup package. If you apply Visual Basic 6.0 Service Pack 4 or later on the build computer, the Package and Deployment Wizard packages older versions of these files from the Redist folder, as discussed in the previous section.
Note MSVBVM60.dll is also a required file for Visual Basic applications to function. This file is not a system file and is not part of Windows File Protection. System files that should be excluded from your redistributable packageWhen you use the Package and Deployment Wizard to package your application, examine the list of files that are being redistributed on the Included Files screen. Click to clear the check box next to following files if they are listed:
Also, to make sure that the Package and Deployment Wizard first tries to locate files from the Redist folder, do not select a packaging script when you start the Package and Deployment Wizard. The Package and Deployment Wizard tries to locate the files from the same location that it used during the previous packaging attempt. Although the correct version of a file may be located in the Redist folder, the Package and Deployment Wizard may not use the correct version of the file if it packaged the file from a different location during the previous packaging attempt. If you must correct this problem in a setup package that has already been assembled, you can edit the Setup.lst file to prevent installation of the offending system files. To do this, follow these steps:
STATUS This behavior is by design. REFERENCES
For additional information, click the following article number s to view the article s in the Microsoft Knowledge Base:
222193
(http://support.microsoft.com/kb/222193/
)
Description of the Windows File Protection feature
330314
(http://support.microsoft.com/kb/330314/
)
PRB: Your computer does not restart after you install a Microsoft Visual Basic 6.0 application that includes a MSVCRT.dll file
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |





















Back to the top