Archive: Two progress bars: per file and total


Two progress bars: per file and total
I need some hints and leads on how to implement a dialog with two progress bars. One will show progress for each file, and one for all files in total.

The most basic requirement is having a callback for file extraction progress, or something similar, and a callback for each file, even when using wildcards in File instruction.

If we have that, anyone can draw a custom progress bar made from images or whatever.


I asked this myself a long time ago, can't remember the answer I got, but don't expect this any time soon (unless you write a patch yourself)


Well then, any hints on how to write a patch for that? Do I need to check the file system and use some special api functions that reports file progress? Where should I look at the NSIS source code to learn what it does and find alternatives?
I already have the double progress bar source code from WISE.


you would probaby have to figure out the code path of the File instruction, then at some point, add a call to a callback function (like .OnInit etc. that you would also have to add code for) But you are better off talking to kichik about this, either here on the forum or the IRC channel


The best hint I can give you is to follow the existing solution. There is code in place that prints out percentage of current file extraction. Simply modify it to update the progress bar instead.


That's a great hint. I thought there's no file progress indication at all.

Thanks!