choco icon indicating copy to clipboard operation
choco copied to clipboard

zip extraction - please add ability for user to see progress

Open JoeDobise opened this issue 6 years ago • 3 comments

On occasion package installation can take a long time, a progress bar could remove the question of whether or not the chocolatey install is in the process of failing or just taking a long time.

One such example is the case of a large zip file containing numerous files or a large file, and being installed via Install-ChocolateyZipPackage

Another example would be the capturing of a more traditional exe install that already takes a non-trivial amount of time to install.

JoeDobise avatar Aug 06 '19 17:08 JoeDobise

Let's try to keep this to one thing - it's easier to hook in and provide updates to a zip file extraction. It's probably an inordinate amount of work to try to determine how far along an installer black box is. There is a concept of determining if an installer has hung, which I think we might have an issue for - that's probably about all we could do there.

ferventcoder avatar Aug 07 '19 16:08 ferventcoder

@JoeDobise thanks for writing this up!

ferventcoder avatar Aug 07 '19 16:08 ferventcoder

I just found this issue thanks to Up For Grabs and I'd like to suggest an idea. can't we store the directory's size in a variable, then make a loop that checks every x second to see if the current director's size is different from the variable we set (which means the extraction is progressing) and if it is we would update the variable with current size and run the timer again, and if it didn't change then we would determine that the installer is hung (since that no change in size means no new files are being added)?

LolMan123XD avatar Apr 21 '20 20:04 LolMan123XD