Jump to content


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.
Photo

Opening a windows Installer file using VB


1 reply to this topic

sss

sss
  • Members
  • 3 posts

Posted 11 July 2005 - 16:16

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

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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.