Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Get RemoteFiles

William Gathoye edited this page May 26, 2018 · 4 revisions

Get-RemoteFiles

NAME

Get-RemoteFiles

SYNOPSIS

Get Latest URL32 and/or URL64 into tools directory.

SYNTAX

Get-RemoteFiles [-Purge] [-NoSuffix] [[-FileNameBase] <String>] [[-FileNameSkip] <Int32>] [[-Algorithm] <String>] [<CommonParameters>]

DESCRIPTION

This function will download the binaries pointed to by $Latest.URL32 and $Latest.URL64.
The function is used to embed binaries into the Chocolatey package.

The function will keep original remote file name but it will add suffix _x32 or _x64.
This is intentional because you can use those to match particular installer via wildcards,
e.g. `gi *_x32.exe`.

PARAMETERS

-Purge [<SwitchParameter>]
    Delete existing file having $Latest.FileType extension.
    Otherwise, when state of the package remains after the update, older installers
    will pile up and may get included in the updated package.
    
    Required?                    false
    Position?                    named
    Default value                False
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
-NoSuffix [<SwitchParameter>]
    Do not add arch suffix (_x32 or _64) at the end of the filename
    
    Required?                    false
    Position?                    named
    Default value                False
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
-FileNameBase <String>
    Override remote file name, use this one as a base. Suffixes _x32/_x64 are added.
    Use this parameter if remote URL doesn't contain file name but generated hash.
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
-FileNameSkip <Int32>
    By default last URL part is used as a file name. Use this paramter to skip parts
    if file name is specified earlier in the path.
    
    Required?                    false
    Position?                    2
    Default value                0
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
-Algorithm <String>
    Sets the algorithm to use when calculating checksums
    This defaults to sha256
    
    Required?                    false
    Position?                    3
    Default value                sha256
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see 
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

INPUTS

OUTPUTS

RELATED LINKS

NOTE: This documentation has been automatically generated from Get-Help Get-RemoteFiles -Full.