Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Using Msi.Dll

Hi,

I am trying to write some code that uses the Msi.Dll to interegate a .Net install to retrieve the Dll's and their versions within.

Unfortunately I am having problems using the Dll, if I add a reference to the Msi.Dll file (in sys32 directory) I am able to write the code. But when I run the code I get the following error:

Could not load type InstallerWrapper from assembly <assemblyname>, Version=1.0.2291.20033, Culture=neutral, PublicKeyToken=null.

Being as it is a Com dll I expected the refernce to show Interup.WindowsInstaller but it shows just WindowsInstaller.

I'm using Vb.Net 2003, if anyone can help?

Many thanks,

-Graham
[717 byte] By [GRussell31] at [2007-11-11 8:27:33]