Add-UssInstallerPackage
SYNOPSIS
Adds a package to an installer.
SYNTAX
First (Default)
Add-UssInstallerPackage [-InstallerId <Guid>] [-PackageId <String>] [-VersionQuery <VersionQuery>]
[-UpdateStrategy <UpdateStrategy>] [-InstanceNameSuggestion <String>] [-OverwriteDescription <String>]
[-Server <String>] [-Port <Int32>] [-Credential <PSCredential>] [<CommonParameters>]
By Index
Add-UssInstallerPackage [-InstallerId <Guid>] [-PackageId <String>] [-VersionQuery <VersionQuery>]
[-UpdateStrategy <UpdateStrategy>] [-InstanceNameSuggestion <String>] [-OverwriteDescription <String>]
[-AtIndex <Int32>] [-Server <String>] [-Port <Int32>] [-Credential <PSCredential>] [<CommonParameters>]
DESCRIPTION
Use Add-UssInstallerPackage to add a package to an installer.
EXAMPLES
Example 1
PS C:\> Add-UssInstallerPackage -InstallerId 'd290f1ee-6c54-4b01-90e6-d701748f0851' -PackageId 'go-current-client' -VersionQuery '>=1.3.0' -UpdateStrategy 'Automatic'
Adds the specified package to the installer with the given update strategy.
PARAMETERS
-AtIndex
Specifies the index where the package should be added. If omitted, it will be added last.
Type: Int32
Parameter Sets: By Index
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Credential
Specifies the credentials to use when connecting to the server.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InstallerId
Specifies the ID of the installer to add to.
Type: Guid
Parameter Sets: (All)
Aliases: Guid, Installer
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-InstanceNameSuggestion
Specifies a suggestion for the instance name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-OverwriteDescription
Specifies a description to overwrite the package description.
Type: String
Parameter Sets: (All)
Aliases: Description
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-PackageId
Specifies the ID of the package to add.
Type: String
Parameter Sets: (All)
Aliases: Id
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Port
DEPRIECATED: Use -Server instead.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Server
Specifies the server to connect to.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdateStrategy
Specifies the default update strategy for the installed package.
Type: UpdateStrategy
Parameter Sets: (All)
Aliases:
Accepted values: None, Automatic, Manual
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-VersionQuery
Specifies the version query for the package.
Type: VersionQuery
Parameter Sets: (All)
Aliases: Version
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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.Guid
System.String
LSRetail.UpdateService.Common.SemanticVersioning.VersionQuery
System.Nullable1[[LSRetail.UpdateService.Common.Models.UpdateStrategy, LSRetail.UpdateService.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] System.Management.Automation.SwitchParameter System.Nullable1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]