dch
2007-04-30 13:59:46 UTC
Hi all,
Following is code in a button handler:
Dim installer
Dim database
Dim szMSI
Dim View
szMSI = "c:\Setup.msi"
installer = CreateObject("WindowsInstaller.Installer")
database = installer.OpenDatabase(szMSI, 2)
database.Commit()
database = Nothing
installer = Nothing
After I run the app and click the button two times, I get the error msg
following:
Msi API Error 80004005: OpenDatabase, DatabasePath, OpenMode
1:2003 2:<msi path> 3:-2147287007
Thanks.
Following is code in a button handler:
Dim installer
Dim database
Dim szMSI
Dim View
szMSI = "c:\Setup.msi"
installer = CreateObject("WindowsInstaller.Installer")
database = installer.OpenDatabase(szMSI, 2)
database.Commit()
database = Nothing
installer = Nothing
After I run the app and click the button two times, I get the error msg
following:
Msi API Error 80004005: OpenDatabase, DatabasePath, OpenMode
1:2003 2:<msi path> 3:-2147287007
Thanks.