Hello i am developing an automatic update system which has a progress bar which is staged based.
detecting connection = 10%
checking file exists = 20%
check for updates = 30%
download update = 40%-70%
install update = 70%-100%
This is where it gets complicated, once the progress bar has reached the download update stage i would like the progress bar to also show the progress of the download which would mean the following…
40% = 0% of the download
70% = 100% of the download
and once the download is complete…
70% = 0% of the update installed
100% = 100% of the update installed
but how would this be calculated.
70 - 40 = 30, so 30% of the bar represents your download progress30 / 100 = 0.3, so increment by 0.3 % each time 1% of the download completes.