Archive: Shared Logging?


Shared Logging?
Hi,

I have a master installer that downloads and runs an updater (a second installer). I've been asked to provide some logging, so I initially added the DumpLog function by KiCHiK to my master installer. Then I realized it would be good to have the updater output too.

Any suggestions on a good way to allow the 2 installers to share the same log file? (I am not in a position currently to recompile the NSIS sources...)

Thanks!
Stan


I don't see any problem here. Just let the updater write to the same file before or after saving the installer log, whatever you like.


Oops, the additional problem was that I was planning on keeping logs of all times the installer is run. So, the file name wouldn't be the same each time. But now that I think of it that way, it's also easy to solve by renaming any existing log file at the beginning.

Thanks!
Stan


Yes, or you can add the date & time.


I would love to add the date and time. But all the ways I've seen to do that so far are pretty tedious. (I know, I'm showing my laziness here).

Any chance of adding a $DATETIMESTAMP built in variable?

Stan


http://nsis.sourceforge.net/archive/...php?pageid=257