You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the file size is about the same as a previous install. If you are running only Get-ChocolateyWebFile and attempting to download a file to the same location every time, it's possible that the file won't get downloaded because the check determines it doesn't need to download a file.
Add -ForceDownload to force the re-download of a file when there may be an existing file.
Validate an existing file against supplied checksum and download if the current file fails the checksum.
Don't do the check against length if there is a checksum present.
ferventcoder
changed the title
Get-ChocolateyWebFile should have a method to force the updated download
Get-ChocolateyWebFile download check enhancements
Sep 8, 2016
- If there is a checksum, use that to verify an exising file instead of
`Content-Length` from web headers as sometimes different versions of a
file will have the same size and could result in false positives.
- Only verify file size and remote checksum if an original checksum is
not available with the package.
- Add `-ForceDownload` to ensure a file is always redownloaded
* stable: (24 commits)
(GH-839) Switch to apply package parameters to dependent packages
(maint) formatting methods / parameters in calls
(GH-958) If SSLv3 in Posh v2 Fails, Use Original
(GH-746) Use HTTPS if available when HTTP url
(GH-957) Skip Get-WebFileName When FTP
(GH-948) Ensure passwords / keys are not logged
(GH-952) Get-ChocolateyWebFile enhancements
(doc) update generated docs
(maint) formatting
(docs) move GenerateDocs.ps1 / update
(GH-932) Do not set unknown checksum to 'md5'
(GH-719) Reset ServerCertificateValidationCallback
(GH-305) add MSP/MSU installer types
(GH-305) update exitcodes to long
(GH-954) Pending fails when lib does not exist
(GH-950) Install-ChocolateyPackage - UseOriginalLocation
(maint) formatting
(GH-922) Automatically determine checksum type
(maint) fixes for shimgen
(GH-948) Do not log sensitive arguments
...
Sometimes the file size is about the same as a previous install. If you are running only Get-ChocolateyWebFile and attempting to download a file to the same location every time, it's possible that the file won't get downloaded because the check determines it doesn't need to download a file.
-ForceDownload
to force the re-download of a file when there may be an existing file.Reference: https://groups.google.com/d/msgid/chocolatey/ff442f6c-c7a9-4a42-bc22-872016af4e23%40googlegroups.com
The text was updated successfully, but these errors were encountered: