View Full Version : Editing a Text File in Basic MSI Poject

01-06-2005, 05:17 AM

I need to edit a text file to insert several lines of text if the new lines aren't already present in the file. It's actually adding a certificate to the certdb.txt file within Oracle J-Initiator. My project is of type Basic MSI.

Looking through the Installshield 10.5 GUI there doesn't seem to be a built-in way of editing text files.

Is the best way to add some InstallScript code that uses FileGrep and FileInsertLines, then add a Custom Action that runs the Installscript code? Or is there some better way?


01-06-2005, 02:41 PM
You can use any language of your choice to create a custom action to modify the content of a text file. If you want to use VBScript, this thread (http://community.installshield.com/showthread.php?t=130060) will give you a starting point.