Skip to content
⌘ NSIS Forum Archive

LogText

7 posts

stonkers#

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'
Afrow UK#
If this log to be included exists at compile time, you could use:


Otherwise, not that I know of.

Stu
stonkers#
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?
stonkers#
Does the logger lock the log file, or can I do something like:

execwait '"type" ${INSTDIR}\otherInstall.log >> ${INSTDIR}\install.log'
Red Wine#
You could give a try to FileJoin to merge those 2 files at the end of your installation,
Afrow UK#
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