Hi.
I've noticed that the Details window in InstFiles page is limited to a certain number of lines, after which it gets truncated (kinda like very very old terminal windows - or the old Windows cmd).
Thus, when I'm copying a large number of files, they overwrite all my debug (or info) printouts I write via DetailPrint.
Is there a way around that - i.e. not to truncate the details panel?
Another option I suppose would be to dump its full contents into a file.
I saw somewhere that there is an option of detailed logging, but could not understand if it is available in the regular NSIS version, or is it a special build that has to be installed instead of the normal NSIS?
Thanks,
Simon
NSIS Details window truncation
8 posts
How many lines can you print before it starts truncating?
Number of lines
Hi.
It looks like somewhere under 500 lines - maybe 480?
Hi.
It looks like somewhere under 500 lines - maybe 480?
${For} $0 1 999Is no problem and neither is 9999 items, there must be something else going on.
DetailPrint $0
${Next}
Apologies for the delay, I had to check some things.
It appears you are correct, the problem is not in lines being truncated as I thought at first.
Apparently no DetailPrint lines are shown when it is used in PRE or SHOW functions - only when it is called from Sections.
Is that a correct behaviour? If so, how do I printout such info from functions?
It appears you are correct, the problem is not in lines being truncated as I thought at first.
Apparently no DetailPrint lines are shown when it is used in PRE or SHOW functions - only when it is called from Sections.
Is that a correct behaviour? If so, how do I printout such info from functions?
Yes, it only prints in sections and functions called by sections because the log only exists on the InstFiles page. The log is probably limited to 2 billion items but you will run out of memory or address space before you get there.
OK, Thanks for that.
I'm using the PRE-show and SHOW functions to configure the installation (e.g. find if some components were already installed and configure the sections accordingly (e.g. visible, selected, ReadOnly etc).
And the same in the Uninstaller.
Is there a way for me to "print out" the status and data from those stages?
Simon
I'm using the PRE-show and SHOW functions to configure the installation (e.g. find if some components were already installed and configure the sections accordingly (e.g. visible, selected, ReadOnly etc).
And the same in the Uninstaller.
Is there a way for me to "print out" the status and data from those stages?
Simon
You could write it to a file in $pluginsdir and then dump the lines back out in your first section.