::MsiOpenDatabase() is used manipulate the MSI data file on disk (you pass a path to it) using SQL. ::MsiOpenPackage() is used to open an MSI file to do "installation like" operations on it. I only know of it being used for validation.
I use ::MsiOpenDatabase() all the time and ::MsiOpenPackage() basically never. DONG LEE wrote: > I am trying to investigate on differences between the handles returned by > MsiOpenPackage and MsiOpenDatabase functions. Is the handle returned by > MsiOpenPackage the only valid MSI handle that can be passed into the MSI > functions that expects a handle to an installation, like MsiProcessMessage? > I'd apprecaite if someone could explain me the differences. Thanks! > > UINT MsiOpenDatabase( > __in LPCTSTR *szDatabasePath*, > __in LPCTSTR *szPersist*, > __out MSIHANDLE **phDatabase* > ); > UINT MsiOpenPackage( > __in LPCTSTR *szPackagePath*, > __out MSIHANDLE **hProduct* > ); > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users