ConvertFrom-AppvLegacyPackage

Converts App-V packages to the format for the current version of App-V.

Syntax

ConvertFrom-AppvLegacyPackage
           [-SourcePath] <String[]>
           [-DestinationPath] <String>
           [-DownloadFullPackageOnFirstLaunch]
           [-OSDsToIncludeInPackage <String[]>]
           [<CommonParameters>]

Description

The ConvertFrom-AppvLegacyPackage cmdlet converts Microsoft Application Virtualization (App-V) packages created by using an earlier version of App-V. This cmdlet converts packages to the format that works with the current version of App-V. The cmdlet returns all packages that it successfully converts, and it returns error or warning messages that it produces while it converts packages.

Examples

Example 1: Convert a package

PS C:\>ConvertFrom-AppvLegacyPackage -SourcePath "C:\ContosoLegacyAppV" -DestinationPath "C:\ContosoAppV50"

This command converts a single App-V package in a previous format to the current App-V format.

Example 2: Convert all packages under a folder

PS C:\>$Packages = ,$Null
PS C:\> Foreach($x in (Get-ChildItem -recurse)) { if($x.FullName.EndsWith("sprj")) { $Packages += $x.PSParentPath } }
PS C:\> ConvertFrom-AppvLegacyPackage -SourcePath $Packages

The first command creates an empty array named $Packages.

The second command uses the ForEachWindows PowerShell® language command to check recursively for files that have an .sprj file name extension. The command stores all the folders that contain .sprj files in the $Packages array.

The final command converts each package stored in $Packages to the current App-V format.

Parameters

-DestinationPath

Specifies the folder where this cmdlet stores the converted packages.

Type:String
Aliases:OutputPath
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DownloadFullPackageOnFirstLaunch

Indicates that you should fully download the converted package before you start it, instead of streaming it.

Type:SwitchParameter
Aliases:FullLoad
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OSDsToIncludeInPackage

Specifies an array of Open Software Descriptors (OSDs) that contain information that this cmdlet includes in the converted App-V package.

Type:String[]
Aliases:OSDs
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SourcePath

Specifies an array of folders for the App-V packages that this cmdlet converts.

Type:String[]
Aliases:Path, PSPath
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False