Microsoft KB Archive/303970

From BetaArchive Wiki
Knowledge Base


INFO: Windows Installer and Windows File Protection

Article ID: 303970

Article Last Modified on 10/2/2003



APPLIES TO

  • Microsoft Windows Installer 1.1
  • Microsoft Windows Installer 1.2



This article was previously published under Q303970


SUMMARY

The Windows Installer cannot overwrite files that are protected by Windows File Protection (WFP). If your .msi package attempts to update a protected file, you will receive the following error message:

The Windows Installer service cannot update the system file <file name> because the file is protected by Windows. You may need to update your operating system for this program to work correctly. Package version: <number>, OS Protected version: <number>"

MORE INFORMATION

When you install an application by using the Windows Installer, you do not have the ability to overwrite protected files. Protected files can only be updated with a system update such as a service pack.

The Windows Installer does not actually attempt to install protected files. The Windows Installer will instead request that WFP install or replace the protected file. WFP will then install or replace the file with a cached version of the file. After WFP has installed the file, the Installer checks this file version against the version information in the file table of the .msi package. If the file version in the package is newer than the installed version, the Installer prompts the user with the error message noted in the "Symptoms" section.

The Installer also checks with WFP when removing files and never attempts to remove protected files.

REFERENCES

Windows Installer SDK Help, which is available from the following Microsoft Web site:

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

222193 Description of the Windows 2000 Windows File Protection Feature


222471 Description of the Windows 2000 System File Checker Tool



Additional query words: WFP SFP MSI protected

Keywords: kbinfo kbmsifaq KB303970