PDA

View Full Version : Question about progress bar during install



arrigob
09-16-2010, 08:02 AM
The installer I am working on will not have any "install files" in our script only "copy files".

This installer will copy files from one directory to another, it will not hold any compressed file to install with-in the installer.

Every installer we have made so far, the progress bar has worked perfectly. But, this installer which only copies file to a directory has trouble with it.

The installer it self copies around 300k - 400k of data over a shared network drive. When you start the install process, the progress bar doesn't move pretty much until the install is finished.

Could this be due to it being over a network drive, or because the size of the file?

~Brandon Arrig

linder
09-16-2010, 08:12 AM
Brandon,

If you are using copy files actions with a wildcard (e.g. *.*) then the total progress bar is not updated for each and every copied file.

The "Copy File(s)" item itself fires the event to update the progress bar. For example, you have 10 "Copy File(s)" functions to copy a single file each, then the progress bar event is fired 10 times. If you have 1 "Copy File(s)" function to copy 500 files then the progress bar is fired once. The wildcard in "Copy File(s)" makes the process "dynamic" and it's not possible to calculate how many files to be processed when the progress bar dialog is initialized.

Hope this helps.

Friedrich

arrigob
09-16-2010, 08:15 AM
Thanks Friedrich,

That is exactly what I needed to know, thanks again!

linder
09-16-2010, 08:23 AM
You are welcome, Brandon! :)

Friedrich