Archive: LogText


LogText
Is there a way to use LogText to put the contents of another log file into the deployment logfile.

sa...

LogText 'echo myFile.log'


If this log to be included exists at compile time, you could use:
http://nsis.sourceforge.net/Invoking...n_compile-time

Otherwise, not that I know of.

Stu


Nope, it's a text file created from the running of a db script at deploy time. So you can't read the contents of a file into a variable and then echo that out to LogTxt?


Does the logger lock the log file, or can I do something like:

execwait '"type" ${INSTDIR}\otherInstall.log >> ${INSTDIR}\install.log'


You could give a try to FileJoin to merge those 2 files at the end of your installation,
http://nsis.sourceforge.net/Docs/AppendixE.html#E.2.6


The log file is locked until the installer is closed. Therefore, what you could do is make a copy of the log file and merge yours onto that.

Then you would have a Delete /REBOOTOK on the original log file followed by a Rename /REBOOTOK.

Stu


Thanks guys, sounds like I've got a game plan now!