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

Processing custom table in custom action........


3 replies to this topic

mayur_bm

mayur_bm
  • Full Members
  • 17 posts

Posted 28 December 2006 - 13:39


I have a requirement like: I need to create a custom table called TextInfo and have to replace many variables inside product configuration files with variable values. This has to be done for around 15 files. Table should have Config file Name, file variable to search for and replacement value.

This I done easily, but I am blank implementing it in custom action………………., I meant, how do I read the table and go ahead with value replacement? please somebody give some clue on implementing it…………
sad.gif

Thanks,
Mayur

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 29 December 2006 - 05:57

I wouldn't use MSI tables for this, but rather XML files that you read with an XML DOM compatible parser and do all the magic you need to do from within a single custom action.
Regards
-Stein Åsmul

mayur_bm

mayur_bm
  • Full Members
  • 17 posts

Posted 29 December 2006 - 09:46

Thank you sir,

iam not well aware of XML DOM compatible parser technology........
i will try to learn it and implement................
in this method: do XMl files has to have information about the files,changes need to be done???
how exactly this can be done........................... huh.gif
cheers,
Mayur


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 January 2007 - 12:43

A custom table sample is available at http://www.installsi...stBox/index.htm