Archive: Progress bar during log operations


Progress bar during log operations
Hi there!

I'm pretty sure there must be some info/examples on the subject, but I failed to find any.

Problem:
=========
In my installer, I have a custom page with the leave function, in which the whole Program Files/ content is analyzed recursively. Depending on the size of Program Files, this might be a quite lengthy process, and, as far as I block the thread, the installer GUI gets unresponsive.

So, apparently, the leave function is executed in main message dispatchig thread. That's why the window isn't redrawn after overlapping with another one and so on...

If it is so for, let's say, a couple of minutes, I think it's a serious usability issue.
=========

What I'd like to have is some sort of a progress bar, or just %% indicator that shows something meaningfull to the user or, at least, make the gui alive while accomplishing the search.

I'd appreciate if someone gave me some advice or reference to relevant thread/manual how to accomplish this.

Thanks in advance!

Sergey


If you insert a short Sleep - does the UI then update?

If the GUI doesn't update, a GUI progressbar - http://nsis.sourceforge.net/NsDialog...ss_Bar_control - might not do much either? What happens if you move it into a next dialog and kickstart the process automatically after a timer tick? Could even temporarily halt your recursing after N operations, create a new timer, and resume the recursing where it left off when it ticks.

Short of those (and similar silliness).. for Win7, at least, you could set the taskbar button to a marquee style progress bar - http://nsis.sourceforge.net/Set_Task..._Indeterminate

And you could try messing with the installer's caption.. that might update appropriately:
http://nsis.sourceforge.net/Change_c...ler_at_runtime