Hi,
I have an msi file that installs an application. I need to know the product name of that application before the installation starts.
I tried the following:
{
...
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...
...
}
but now? Type is null, which throws me an error. And where do I pass in the name of the MSI file?
Thanks for any hints & comments.