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

Populate table at runtime


3 replies to this topic

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 27 September 2004 - 15:19

How to populate table at runtime?

Windows Installer proposes a few methods in Automation Interface:

This method is not appropriate, it returns Database objects in read-only mode:

Set oDatabase = Session.Database

Next method is to open database directly from Installer object:

Set oDatabase = oInstaller. OpenDatabase( name , openMode )

Unfortunately, because the OpenDatabase method initiates database access, it cannot be used with a running installation.

Any suggestion will be helpful.

Sincerely your,
Anton Spitsyn
http://www.installsite.ru

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 28 September 2004 - 09:41

Any changes you make to the database at runtime are temporary, this is by design.
Regards
-Stein Åsmul

RobertDickau

RobertDickau
  • Members
  • 29 posts

Posted 28 September 2004 - 15:19

For the general idea of temporarily modifying an MSI database at run time, anyway, perhaps see this InstallShield newsletter tip: http://www.installsh...s/msiaccess.asp.
Robert Dickau
InstallShield, a Macrovision company
InstallShield training, books, seminars, newsletters, ...

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 29 September 2004 - 06:31

Thanks a lot, Robert!

I find the article comprehensive enough for my purposes.
Sincerely your,
Anton Spitsyn
http://www.installsite.ru