title: WiX : Adding an entry to the GAC in Major Upgrade
body: <p>I have created a major upgrade to my installer script, one of the additional components needs to be inserted into the GAC.  I am using the following code sequence</p>
  
  <pre><code>&lt;Component Id="Net20ApiAssembliesGAC" Guid="GUID"&gt;  
  &lt;File Id="FileId" Name="FileName" 
    DiskId="1" Assembly=".net" KeyPath="yes" 
    Source="..\..\API\DotNet\Assemblies\v2.0\FileName" /&gt;  
  &lt;/Component&gt;
  </code></pre>
  
  <p>Installing rather than upgrading an earlier version is successful, however, if I upgrade I get the following entries in a verbose log</p>
  
  <p>UnregisterSharedComponentProvider</p>
  
  <p>ComponentUnregister</p>
  
  <p>and the entry does not appear in the GAC.</p>
  
  <p>I have move the RemoveExistingProducts using &lt;RemoveExistingProducts After="InstallFinalize" /&gt;, but this has not had an effect.</p>