'<filename>' should be excluded because its source file is under Windows File Protection

The specified file is a protected system file on Windows 2000, Windows XP, and Windows Server 2003. Protected system files are usually installed via operating-system service packs or separate setup packages, such as Windows Media Player or Internet Explorer. Including this file in an installer may cause instability if installed on operating systems that do not support protected system files. For example, by installing a component such as stdole.tlb outside of the System folder and registering it, you will overwrite the registration for the component under system-file protection. When your application is uninstalled, the component installed by the application is removed and the component under system file protection is left in an unregistered state.

Note

This message can appear as either a build error or a build warning. For build errors, you must exclude the specified file in order to build the project. For build warnings, you can build the project without excluding the file, but you should be aware of the potential consequences.

To exclude the file

  1. Select the file in Solution Explorer.

  2. In the Properties window, select the Exclude property and set it to true.

See Also

Tasks

How to: Exclude Items from a Deployment Project

Reference

Exclude Property