Archive: Newbie question


Newbie question
Hi
I would like to modify my execute.bat file by installer after everything was installed. I am using .onInstSuccess function to call FileOpen with "a" mode, followed by FileWrite. I would like my new line to be inserted at the begining of the file. Unfortunately, it overwrites anything i have at the begining (based on the lenght of the line i want to insert). Is there a better way of doing it?
thank you


Hi qman!

All you need to do is to write your line to a new file, then read the old file and write its contents into the new file, close it, and replace the old file with the new file.

KiCHiK