Old 6th July 2017, 15:56   #1
SimonKolotov
Junior Member
 
Join Date: Jul 2017
Posts: 6
Question NSIS Details window truncation

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
SimonKolotov is offline   Reply With Quote
Old 6th July 2017, 17:29   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,533
How many lines can you print before it starts truncating?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th July 2017, 20:31   #3
SimonKolotov
Junior Member
 
Join Date: Jul 2017
Posts: 6
Number of lines

Hi.
It looks like somewhere under 500 lines - maybe 480?
SimonKolotov is offline   Reply With Quote
Old 6th July 2017, 23:15   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,533
Quote:
${For} $0 1 999
DetailPrint $0
${Next}
Is no problem and neither is 9999 items, there must be something else going on.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 7th July 2017, 16:23   #5
SimonKolotov
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?
SimonKolotov is offline   Reply With Quote
Old 8th July 2017, 01:16   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,533
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
Anders is offline   Reply With Quote
Old 10th July 2017, 04:42   #7
SimonKolotov
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
SimonKolotov is offline   Reply With Quote
Old 10th July 2017, 09:40   #8
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,533
You could write it to a file in $pluginsdir and then dump the lines back out in your first section.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
debug, detailprint, details pane, log

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump