Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source file X is under Windows System File Protection in c#?

I got an error during creating a installer for my web application(c#). The error is

Error 19 'msado20.tlb' should be excluded because its source file 'C:\Program Files\Common Files\system\ado\msado20.tlb' is under Windows System File Protection.

what does mean?

like image 706
Partha Avatar asked Aug 24 '09 08:08

Partha


1 Answers

You need to exclude the file from the installer.

From MSDN

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.

Bye.

like image 161
RRUZ Avatar answered Oct 12 '22 17:10

RRUZ