PDA

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



Chas_Gregory
01-06-2005, 05:17 AM
Hi,

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?

Thanks
Chas

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