title: Install an assembly into GAC programmatically
body: <p>I need to install an assembly in GAC using c#. Below is my code:</p>
  
  <pre><code>new System.EnterpriseServices.Internal.Publish().GacInstall("MyAssembly.dll");
  </code></pre>
  
  <p>The above code gives the error:</p>
  
  <blockquote>
    <p>Absolute path required</p>
  </blockquote>
  
  <p>But i need this to run without using static file path (absolute path). Can anyone tell me whether its possible? I have added the reference to the assembly inside the project references. I need to install this assembly inside GAC.</p>