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

How to add records to MSI?


2 replies to this topic

k7magi

k7magi
  • Members
  • 2 posts

Posted 18 January 2002 - 09:21

It has been very frsutrating that I have tried all day yet I still can't modfy a record in an MSI package using the APIS provided in msiquery.h .

I have tried the SQL statment "INSERT INTO `Property`(`Property`,`Value`) VALUES(?,?)" but it does not work. I got a return value saying the statment is incorrect. Are there any other alternatives?

I would appreciate if anyone can provide me with some example code.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 January 2002 - 22:36

If you're doing this in a running application (custom action) be sure to use TEMPORARY.

KiwiGeek

KiwiGeek
  • Members
  • 19 posts

Posted 24 January 2002 - 01:23

See my reply in the "Problem with RegLocator Update" thread for an example.  It assumes that you've already opened the database and have a handle to it.