WPF C# Program does not start after installation


I’ve created a "setup project". In the "Application Folder" of this project, I’ve added all the "primary outputs" to the "application folder". Also the the active solution configuration is set on "Release". The TargetPlatform is on x86 and .Net Framework 4.6.1. After I built this project i can go to the installation software and install my program.

Then when I try to open my installed program I can see my computer is loading, but it doesn’t open.
There is a primary output that is underlined and gives a warning while building this project:

Photo: System.IO.Compression.dll error

(WARNING: ‘System.IO.Compression.dll’ should be excluded because its source file ‘C:WINDOWSMicrosoft.NetassemblyGAC_MSILSystem.IO.Compressionv4.0_4.0.0.0__b77a5c561934e089System.IO.Compression.dll’ is under Windows System File Protection.)

Anyone knows how to fix this?

Source: Visual Studio Questions