title: Get product name from msi file in C#
body: <p>I have an msi file that installs an application. I need to know the product name of that application <em>before</em> the installation starts. </p>
  
  <p>I tried the following:</p>
  
  <pre><code>{ 
  
  ...
  Type type = Type.GetType("Windows.Installer");
  WindowsInstaller.Installer installer = (WindowsInstaller.Installer)
  Activator.CreateInstance(type);
  
  installer.OpenDatabase(msiFile, 0); //this is my guess to pass in the msi file name...
  ...
  }
  </code></pre>
  
  <p>but now? Type is <em>null</em>, which throws me an error. And where do I pass in the name of the MSI file?</p>
  
  <p>Thanks for any hints &amp; comments.</p>