title: C# - Using wuapi.dll without embedding it into project
body: <p>I am trying to create a program, allowing silent installation of important updates for Windows. I want it to be a single .exe file, without any additional files, libraries, icons etc. I am using .Net 3.5. I included wuapi.dll to the References folder of my project. After compilation wuapi.dll is copied to the same folder, where goes .exe file (Debug or Release).</p>
  
  <p>I've read different articles about usage of ILMerge for embedding .dll files directly into .exe file. And here is my question - all the Windows computers have wuapi.dll in system32 or SysWow64 folders, so why should I embed it into my project? Is there a way to make a reference to these libraries or use their functions without adding them to project at all?</p>