Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download large zip, extracting and installing MSI from that fails #883

Open
jmp242 opened this issue Aug 1, 2016 · 5 comments
Open

Download large zip, extracting and installing MSI from that fails #883

jmp242 opened this issue Aug 1, 2016 · 5 comments

Comments

@jmp242
Copy link

jmp242 commented Aug 1, 2016

What You Are Seeing?

MSI fails to install with error 1603. Chocolatey lib-bad only has some of the files from the zip after failure. More details here: https://groups.google.com/forum/#!topic/chocolatey/wjid8Ej6YEY

What is Expected?

MSI successfully installs.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Use tool like EMCOSoft MSI Builder to repackage large installation, or get MSI + CAB files installer.
  2. Zip files into one package.
  3. Use Install-ChocolateyZipPackage to download zip from HTTPS URL and unzip to $toolsDir.
  4. Use Install-ChocolateyInstallPackage to install the now local MSI file

    Output Log

GIST LINK - https://gist.github.com/jmp242/08229c5383e7147120e609decac7ec02

@ferventcoder ferventcoder added this to the 0.9.10.4 milestone Aug 1, 2016
@ferventcoder ferventcoder self-assigned this Aug 1, 2016
ferventcoder added a commit that referenced this issue Aug 1, 2016
Even though `$process.WaitForExit()` has identified that the process
has exited, it appears that the process may be performing some final
cleanup as the exit code is still null when it is passed to
`Set-PowerShellExitCode`. Allow the process to take up to 15 seconds to
fully exit so that it has cleaned up. In the case of 7zip, ensure that
it has ample time to finish extracting after it has indicated that it
has completed the extraction and is exiting.
ferventcoder added a commit that referenced this issue Aug 1, 2016
* stable:
  (GH-885) Determine Installer by Overridable Method
  (maint) formatting
  (doc) update messaging on runtime virus check
  (GH-870) Update deprecated links
  (GH-883) Wait Up to 15 Seconds for Process Exit
@ferventcoder
Copy link
Member

@jmp242 can you take a look at 04d9e0e and apply it to the same file (you may need to remove the AuthentiCode signature at the bottom of the script) and let me know if this fixes the issue?

@jmp242
Copy link
Author

jmp242 commented Aug 1, 2016

Seems like it did not - same 1603 error, same random file in lib-bad.

For what it's worth, using an installed 7zip GUI to extract the zip
takes around 8 minutes on my test VM, and that is running pretty fast.

On 08/01/2016 10:51 AM, Rob Reynolds wrote:

@jmp242 https://github.com/jmp242 can you take a look at 04d9e0e
04d9e0e
and apply it to the same file (you may need to remove the AuthentiCode
signature at the bottom of the script) and let me know if this fixes the
issue?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#883 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABVyurt3YNxKu8GID4YQP8CvYWU82SQUks5qbgf4gaJpZM4JZhoS.

@ferventcoder
Copy link
Member

Can you provide the gist for that output? I'm curious to see how it failed with that.

@ferventcoder
Copy link
Member

Alternatively, I need to find a large zip that takes some time for extraction and test that (I believe I have something I can find for that).

@jmp242
Copy link
Author

jmp242 commented Aug 2, 2016

If you have a more private e-mail, I can share this zip with you on box.com.

On 08/01/2016 04:14 PM, Rob Reynolds wrote:

Alternatively, I need to find a large zip that takes some time for
extraction and test that (I believe I have something I can find for that).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#883 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABVyuphjKEo9VmjmpnZkspwSWFW1_aBaks5qblObgaJpZM4JZhoS.

@ferventcoder ferventcoder modified the milestones: 0.10.0, 0.10.1 Aug 6, 2016
@ferventcoder ferventcoder modified the milestones: 0.10.1, 0.10.2 Sep 5, 2016
@ferventcoder ferventcoder modified the milestones: 0.10.2, 0.10.3 Sep 20, 2016
@ferventcoder ferventcoder modified the milestones: 0.10.3, 0.10.4 Oct 3, 2016
@ferventcoder ferventcoder removed this from the 0.10.4 milestone Jan 6, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.7, 0.10.6 Apr 1, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.7, 0.10.8 Jun 6, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.9, 0.10.10 Aug 27, 2017
@ferventcoder ferventcoder modified the milestones: 0.10.10, 0.10.12 Mar 27, 2018
@ferventcoder ferventcoder modified the milestones: 0.10.12, 0.10.13 May 3, 2018
@ferventcoder ferventcoder modified the milestones: 0.10.13, 0.10.14, 0.10.15 Mar 9, 2019
@ferventcoder ferventcoder modified the milestones: 0.10.15, 0.10.16 Apr 1, 2019
@gep13 gep13 modified the milestones: 0.10.16, 0.10.17 May 31, 2019
@ferventcoder ferventcoder modified the milestones: 0.10.17, 0.10.18 Jan 14, 2020
@ferventcoder ferventcoder modified the milestones: 0.10.18, 0.10.x Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants