PDA

View Full Version : Progress bar in while installing screen


xu1t
09-10-2009, 02:05 PM
Hi there,

My installer supposes to deploy a large amount of files (around 4G), which mostly are images and videos. My issue is the progress bar on while installing screen doesn't synchronize well. For example, i can see the progress bar is full(100%) but it still copies files (the copying file text is still updating). Does anybody know what cause this issue and what should i do in order to resolve it?


Thanks

pww
09-11-2009, 09:20 AM
I guess what's passed to the function that updates the progress bar is the rounded ratio installed/total files (or their total size) so after 99.5% it shows 100%, but still half percent remains - which could be lots of files if the total number or size is huge.

You may put something like this

if e_StagePct >50 then
e_StagePct = e_StagePct-1;
end


It will make the progress bar show 99% instead of 100.

pww
09-11-2009, 09:41 AM
forgot to mention, this code should go above the last line
DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, e_StagePct);

of the On Progress script

jassing
09-11-2009, 01:37 PM
My issue is the progress bar on while installing screen doesn't synchronize well. For example, i can see the progress bar is full(100%) but it still copies files (the copying file text is still updating).

There was an issue where the progress bar didn't update correcty...
The "while installing" actually gets re-used.
There's a few stages where it goes 0 to 100%; and then it's supposed to be rest to 0 and repeat.
the longest stage,and the one most peope "see" is the "installing files" stage.

I reported this a while back; but AFAIK it was fixed, as I haven't seen it recently (not that I've been looking for it)
I can't find the reference, since the search engine has forced waits, and seems to think lots of words I was using were "too short" or "too common"

What version of SUF are you using?
what OS are you seeing this on?