![]() |
#1 |
Junior Member
Join Date: Jul 2017
Posts: 6
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
How many lines can you print before it starts truncating?
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jul 2017
Posts: 6
|
Number of lines
Hi.
It looks like somewhere under 500 lines - maybe 480? |
![]() |
![]() |
![]() |
#4 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
Quote:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jul 2017
Posts: 6
|
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? |
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
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.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jul 2017
Posts: 6
|
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 |
![]() |
![]() |
![]() |
#8 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
You could write it to a file in $pluginsdir and then dump the lines back out in your first section.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
debug, detailprint, details pane, log |
Thread Tools | Search this Thread |
Display Modes | |
|
|