Skip to content

New-InstallerFile

SYNOPSIS

Includes a new file in the installer.

SYNTAX

New-InstallerFile [-Id <String>] [-Source] <String> [<CommonParameters>]

DESCRIPTION

Includes a new file in the installer.

EXAMPLES

Example 1

PS C:\> Get-ChildItem (Join-Path $PSScriptRoot "InstallerAssets\*.exe") | New-InstallerFile -Verbose

Includes all the exes within the InstallerAssets folder in the installer.

PARAMETERS

-Id

Specifies the ID of this file. The ID is autogenerated if not specified.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Source

The source of this file. The file must exist.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.IO.FileInfo

OUTPUTS

System.Object

NOTES

Back to top