Hi
I am trying to Open a Windows Installer database file using VB6.
I have included the refrences "Windows Installer Object Library" (msi.dll)
when I run the following code
Dim objWI As WindowsInstaller.Installer
Dim objDB As WindowsInstaller.Database
Set objDB = objWI.OpenDatabase("[pathof msi]",0)
I get an error saying "Object variable or With block variable not set ".
What could be the mistake on my part???
Thanks
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Opening a windows Installer file using VB
Started by
sss
, Jul 11 2005 16:16
1 reply to this topic
Posted 13 July 2005 - 12:44
Remember that you cannot do this in a custom action:
QUOTE |
Because the OpenDatabase method initiates database access, it cannot be used with a running installation. |
Stefan Krüger
InstallSite.org twitter facebook