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 extracts a specific App-V 5.0 XML file from an App-V 5.0 compressed .APPV package/archive. The -XML parameter has a specific set of options and is not case-sensitive (unlike the Save-AppV5File module).

Syntax

Save-AppV5FileXml [-AppV] <String> [-XML] <String> [-FilePath] <String> [-Overwrite] [<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

-XML <String>
The specific XML file within the App-V 5.0 package/archive .APPV file to extract

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

-FilePath <String>
The target directory to save the extracted XML file to

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

-Overwrite [<SwitchParameter>]

Required? false
Position? named
Default value False
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

Extracts the AppxManifest.xml file from the App-V 5.0 c:\package.appv file and saves it as c:\temp\appxmanifest.xml.

 C:\PS>Save-AppV5FileXml -AppV c:\package.appv -XML AppxManifest -FilePath c:\temp\

Extracts the StreamMap.xml file from the App-V 5.0 c:\package.appv file and saves it as c:\temp\streammap.xml, overwriting it if it exists.

C:\PS>Save-AppV5FileXml -AppV c:\package.appv -XML StreamMap -FilePath c:\temp\ -Overwrite

Code Snippet

C:\PS>Save-AppV5FileXml -AppV C:\\GoogleChrome_v23.0.1271.91.appv -XML StreamMap | Get-Content

<?xml version="1.0" encoding="utf-8"?>
<StreamMap xmlns="http://schemas.microsoft.com/appv/2010/streammap">
<FeatureBlock Id="PrimaryFeatureBlock" LoadAll="true" />
<FeatureBlock Id="PublishingFeatureBlock"><File Name="Root\chrome.exe.0.ico" /></FeatureBlock></StreamMap>

C:\PS>

Archives

Categories