Install-ChocolateyZipPackage

Install-ChocolateyZipPackage

Install-ChocolateyZipPackage

Downloads file from a url and unzips it on your machine. Use Get-ChocolateyUnzip when local or embedded file.

Syntax

Install-ChocolateyZipPackage `
  -PackageName <String> `
  [-Url <String>] `
  -UnzipLocation <String> `
  [-Url64bit <String>] `
  [-SpecificFolder <String>] `
  [-Checksum <String>] `
  [-ChecksumType <String>] `
  [-Checksum64 <String>] `
  [-ChecksumType64 <String>] `
  [-Options <Hashtable>] `
  [-File <String>] `
  [-File64 <String>] `
  [-DisableLogging] `
  [-IgnoredArguments <Object[]>] [<CommonParameters>]

Description

This will download a file from a url and unzip it on your machine. If you are embedding the file(s) directly in the package (or do not need to download a file first), use Get-ChocolateyUnzip instead.

Notes

Chocolatey works best when the packages contain the software it is managing and doesn’t require downloads. However most software in the Windows world requires redistribution rights and when sharing packages publicly (like on the community feed), maintainers may not have those aforementioned rights. Chocolatey understands how to work with that, hence this function. You are not subject to this limitation with internal packages.

Aliases

None

Examples

EXAMPLE 1

Install-ChocolateyZipPackage -PackageName 'gittfs' -Url 'https://github.com/downloads/spraints/git-tfs/GitTfs-0.11.0.zip' -UnzipLocation $gittfsPath

EXAMPLE 2


Install-ChocolateyZipPackage -PackageName 'sysinternals' `
 -Url 'http://download.sysinternals.com/Files/SysinternalsSuite.zip' `
 -UnzipLocation "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"

EXAMPLE 3


Install-ChocolateyZipPackage -PackageName 'sysinternals' `
 -Url 'http://download.sysinternals.com/Files/SysinternalsSuite.zip' `
 -UnzipLocation "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" `
 -Url64 'http://download.sysinternals.com/Files/SysinternalsSuitex64.zip'

Inputs

None

Outputs

None

Parameters

-PackageName <String>

PropertyValue
Aliases
Required?true
Position?1
Default Value
Accept Pipeline Input?false

-Url [<String>]

PropertyValue
Aliases
Required?false
Position?2
Default Value
Accept Pipeline Input?false

-UnzipLocation <String>

PropertyValue
Aliasesdestination
Required?true
Position?3
Default Value
Accept Pipeline Input?false

-Url64bit [<String>]

PropertyValue
Aliasesurl64
Required?false
Position?4
Default Value
Accept Pipeline Input?false

-SpecificFolder [<String>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-Checksum [<String>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-ChecksumType [<String>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-Checksum64 [<String>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-ChecksumType64 [<String>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-Options [<Hashtable>]

PropertyValue
Aliases
Required?false
Position?named
Default Value@{Headers = @{} }
Accept Pipeline Input?false

-File [<String>]

PropertyValue
AliasesfileFullPath
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-File64 [<String>]

PropertyValue
AliasesfileFullPath64
Required?false
Position?named
Default Value
Accept Pipeline Input?false

-DisableLogging

PropertyValue
Aliases
Required?false
Position?named
Default ValueFalse
Accept Pipeline Input?false

-IgnoredArguments [<Object[]>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/p/?LinkID=113216 .

Function Reference

:choco-info: NOTE

This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Install-ChocolateyZipPackage -Full.

View the source for Install-ChocolateyZipPackage