View Full Version : How to get a handle to an .MSI package?

06-06-2005, 01:27 PM
Currently, our install has a list of MSI packages (files) in the [SOURCEDIRECTORY]. The main (active) MSI needs to read the list of MSI packages for the ProductName and present it to the user who can choose what MSI packages he wants to install.
I have seen examples where I can get the ProductName from the current MSI package. (either using Session.Property("ProductName") or using a VBScript that uses a SELECT statement). But I am not sure how I can read the ProductName of another MSI package.
Thanks in advance.

06-06-2005, 02:10 PM
You can call MsiOpenDatabase from an executable, but the MSI Help Library lists it as a function that can't be called from a custom action...