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 System.Xml.XmlDocument containing information from the AppxManifest.xml, PackageHistory.xml, StreamMap.xml and FilesystemMetadata.xml files in the specified App-V 5.0 .APPV package. Data is returned under the <AppV5> element/node.

Syntax

Get-AppV5FileXmlPackage [-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 a System.Xml.XmlDocument.

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

Code Snippet

C:\PS> $XML = Get-AppV5FileXmlPackage -AppV c:\package.appv
C:\PS> $XML.AppV5.Package.Extensions.Extension.AppPath | fl

Name : chrome.exe
ApplicationPath : [{AppVPackageRoot}]\chrome.exe
PATHEnvironmentVariablePrefix : [{AppVPackageRoot}]
ApplicationId : [{AppVPackageRoot}]\chrome.exe

C:\PS>$XML.AppV5.Metadata.Filesystem | fl

Root : C:\Program Files\Google\Chrome\Application
Short : C:\PROGRA~1\Google\Chrome\APPLIC~1
Entry : Entry

C:\PS>

Archives

Categories