This PowerShell module is included as part the Virtual Engine App-V 5.0 PowerShell modules download. For installation details, please refer to the Installing the New App-V 5 PowerShell Modules post. Note: This module requires PowerShell 3.0 and the Microsoft .Net Framework 4.5.

Description

This function returns a custom PowerShell object containing pertinent information within the AppxManifest.xml, PackageHistory.xml, StreamMap.xml and FilesystemMetadata.xml files in the specified App-V 5.0 .APPV package.

Syntax

Get-AppV5FilePackage [-AppV] <String> [<CommonParameters>]

Parameters

-AppV <String>

The source App-V 5.0 package/archive .APPV file

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Examples

Returns details of the c:\package.appv App-V 5.0 package .APPV files as an object.

C:\PS>Get-AppV5FilePackage -AppV c:\package.appv

Code Snippet

C:\PS> $APPV = Get-AppV5FilePackage -AppV c:\GoogleChrome_v23.0.1271.91.appv
C:\PS> $APPV

Name : GoogleChrome_v23.0.1271.91.appv
PackageId : b6299ba1-bb16-4ed5-b50c-c4ec5843d9a9
VersionId : d8121602-53f6-4e7a-9c95-b4530c2f7111
DisplayName : GoogleChrome_v23.0.1271.91
AppVPackageDescription : Created on Win7 32bit Sequencer
Version : 0.0.0.1
OSMinVersion : 6.1
OSMaxVersionTested : 6.1
SequencingStationProcessorArchitecture : x86
UncompressedSize : 111448506
PrimaryFeatureBlockLoadAll : true
FileSystemRoot : C:\Program Files\Google\Chrome\Application
FileSystemShort : C:\PROGRA~1\Google\Chrome\APPLIC~1
FileInfo : C:\GoogleChrome_v23.0.1271.91.appv
AssetIntelligence : {@{SoftwareCode={170edff0-10da-3eb1-9fa0-7b92e3dbd8c1}...}
Applications : {@{Id=[{AppVPackageRoot}]\chrome.exe; TargetInPackage=true; ...}}
PackageHistory : {@{Time=27/11/2012 16:35:13; PackageVersion=5346dcc9-4d84-4860-b678- ...}}
Files : {Registry.dat, Root/23.0.1271.91/avcodec-54.dll, Root/23.0.1271.91/avformat-54.dll, ...}

C:\PS> $APPV.FileSystemRoot
C:\Program Files\Google\Chrome\Application

C:\PS> [Math]::Truncate($APPV.UncompressedSize/1MB)
106

C:\PS>

Archives

Categories