title: Programmatically change the AssemblyVersion and AssemblyFileVersion attributes
body: <p>During a setup creation process, I am planning to do the following (within a <a href="http://www.csscript.net/" rel="nofollow noreferrer">C# Script</a>):</p>
  
  <ol>
  <li>Read the <code>AssemblyVersion</code> and <code>AssemblyFileVersion</code> attribute values of one DLL.</li>
  <li>Iterate all DLLs and executables in the project and apply those version to their <code>AssemblyVersion</code> and <code>AssemblyFileVersion</code> attribute values.</li>
  </ol>
  
  <p>Question now is: <strong>How to do step 2?</strong> </p>
  
  <p>I successfully can do step 1, but for step 2 I don't see a real start point. What I probably have to do is to use some native P/Invoke methods since the attributes directly modify the version information resource information of a DLL/executable.</p>
  
  <p>Any hints on this?</p>