VB.net Setup Issue

407 views Asked by At

While creating the setup for VB.net application I am getting the following warning: "Warning 1 'msado15.dll' should be excluded because its source file 'C:\Program Files\Common Files\System\ado\msado15.dll" is under Windows System File Protection.

Please suggest me how to over come this type of issue.

Thanks,

2

There are 2 answers

2
xpda On BEST ANSWER

That means that file is normally already on the operating system, so it should not be necessary to install it. If you remove the user's original protected file in your app uninstall, it can cause problems on the user machine.

0
Christian Hayter On

This is a classic case of IDE components not talking to each other.

  • One component says "you reference msado15.dll in your code, therefore I should include it in the project".
  • An unrelated component says "msado15.dll is on my list of protected DLLs, therefore I should warn you not to include it".
  • However, no component thinks like a human and says "hang on, this DLL is part of the framework, therefore I should silently remove it from the installer".

It's up to you to do the last part yourself.