title: Issue faced during uninstall MSI using its Product Code in c#(DTF)
body: <p>I am creating a CustomBA which will replace the existing install shield Bootstrapper( I don't really know what it's called).</p>
  
  <p>We are installing the same number of MSI as the install shield use to do, so no problem in that.
  All the MSI entries in the ARP are removed, as we are making MSI's  Visible="no".</p>
  
  <p>Only the Custom BA entry is available in the ARP along with the Install shield Bootstrapper entry, both having the same name.</p>
  
  <p>So after some research I got to know that Windows Installer XML (WiX) ships the Microsoft.Deployment.WindowsInstaller interop library as part of Deployment Tools Foundation (DTF), which can be used to uninstall the MSI.</p>
  
  <p>I am using the below code to uninstall the MSI.</p>
  
  <pre><code>Microsoft.Deployment.WindowsInstaller.Installer.SetInternalUI(InstallUIOptions.Silent);
  Microsoft.Deployment.WindowsInstaller.Installer.EnableLog(InstallLogModes.Info, @"C:\Uninstall.log");
  Microsoft.Deployment.WindowsInstaller.Installer.ConfigureProduct(productCode, 0, InstallState.Absent, "");
  </code></pre>
  
  <p>Issue that I am facing are as mentioned below</p>
  
  <ol>
  <li><p>Firstly I have to run the CustomBA as Administrator to uninstall the existing MSI else it throw as error "Error 1730.You must be an Administrator to remove this application.". Is there a way to run the CustomBA without Administrator and uninstall the MSI.</p>
  
  <ol start="2">
  <li><p>While uninstall( when I run the customBA as admin), the above mentioned code also remove's the chain packages with it, which I don't want it to do.</p></li>
  <li><p>After the uninstallation code has been run it does not remove the MSI entry from the ARP.</p></li>
  </ol></li>
  </ol>
  
  <p>I've found these links but I don't know if it's relevant: 
  <a href="http://I&#39;ve%20found%20these%20links%20but%20I%20don&#39;t%20know%20if%20it&#39;s%20relevant:" rel="nofollow noreferrer">https://stackoverflow.com/questions/17523974/how-to-uninstall-msi-using-its-product-code-in-c-sharp</a>
  <a href="https://stackoverflow.com/questions/17149811/checking-for-successful-uninstall/17175837#17175837">Checking for successful uninstall</a></p>